Screen Shot 2015年10月10日 at 11.16.49 PM.png
文章中图片太多了,大家还是点开看吧
另外要感谢 @hellopao 的 用Visual Studio Code写Node.js
github仓库 https://github.com/i5ting/vsc ,欢迎反馈和issue
2016年5月11日更新
更新列编辑快捷键 更新1.1版本说明
主要改进点:
- 双击编辑器可以改变大小
- 调试性能提升和对Node.js更好的支持
- 外部shell调用配置
扩展作者会尤其喜欢这个版本,理由如下:
- 更新了语言Server协议
- 增加调试适配器测试支持
- 增加非常多的新的API,如打开文件夹,增加JSON模式验证,调试时操作
2016年3月20日更新
更新
扩展 http://i5ting.github.io/vsc/#119
- vscode-react-native
- vscode-go
调试协议 http://i5ting.github.io/vsc/#120
支持折叠 http://i5ting.github.io/vsc/#12103
更多信息,欢迎关注我的公众号【node全栈】
node全栈.png
联系我,更多交流
xiaoweiquan.jpeg
@alonprince 要支持es6的话,需要在项目下建一个jsconfig.json,内容为
{
"compilerOptions":{
"target":"ES6",
"module":"commonjs"
}
}
嫌麻烦的话可以安装下我写的模块jsf,通过命令行来生成该文件
npm install jsf -g
jsf
DEBUG 有个 attach 选项, 用"–debug-brk", 也可以调试 比如调试mocha的测试, 不是直接node xxx.js 可以这样: mocha –debug-brk xxxxx.js, 然后debug
还有个好处 刚接触VSCODE的朋友,完全不用里配置, 直接终端 node --debug-brk xxxx.js, 选’attach’,点debug
貌似还可以远程
untitled1.png
完全可以不用 inspector了
Workbench主菜单快捷键
熟悉mac的都知道folder里的cmd+1|2|3|4切换文件夹显示,其实我们也可以使用类似的快捷键来提高工作效率
{ "key": "cmd+1", "command": "workbench.view.explorer" },
{ "key": "cmd+2", "command": "workbench.view.search" },
{ "key": "cmd+3", "command": "workbench.view.git" },
{ "key": "cmd+4", "command": "workbench.view.debug" }
爽歪歪~~
文档已经更新
我的玩法(常用快捷键)
ctrl + command + f放大到全屏- 设置Workbench主菜单快捷键,然后就有了
command + 1到4的快捷键,快速切换 command + b显示或隐藏(奇数次和偶数次)二级菜单,让可视区更大- 可视区内
command + \新建编辑窗口(尤其是markdown里面,一个编写,一个预览shift + command + v) - 可视区内
command + w关闭编辑窗口 command + p快速打开文件- 使用
ctrl + -或者shift + ctrl + -切换working files - 当前文档里搜索
command + - - 所有文档里搜索
shift + command + -
@i5ting for win8 和10的,不行。它的system requirement( https://code.visualstudio.com/docs/supporting/requirements )里讲过的,也试过,不行...
@klausgao VSCode can compete with them with much better Typescript support (and it will be very popular consider Angular 2 is comming) but only if it will give developers what they use now as a basic functionality.
http://blogs.msdn.com/b/vscode/archive/2015/11/17/announcing-visual-studio-code-beta.aspx
最新声明
- Extensibility [Plug-in] Support in VS Code
- Extension Marketplace/Gallery
- Extensions Ready to try Now
- VS Code is Open Sourced
- VS Code November Release - Features
- What’s next for VS Code
VS Code November Update – Features
While the majority of focus has been on extensibility support and open sourcing the project it would not be an update to VS Code if we did not also add additional core features.
- Extension SDK: With the code yeoman generator you can quickly scaffold a new extension, open it in VS Code, and press F5 to run and debug your code
- Debugging: Streamlined experiences for adding watches, launch configurations for different runtimes, and better visualizations of errors and warnings
- Languages: Improved support for consuming the latest TypeScript compilers, PHP now uses PHP-L for linting, and better theme support for many languages with additional colorization tokens
- Snippets: VS Code can now consume snippets from TextMate bundles
更新
扩展 http://i5ting.github.io/vsc/#119
- vscode-react-native
- vscode-go
1.1.0 (April 2016)
The April 1.1.0 release is our first monthly release after announcing 1.0. We have been overwhelmed by the positive response to that release and the excitement in the community for VS Code and the rapidly growing ecosystem of new languages and extensions.
Keeping to our monthly release cadence, we’ve put together a nice selection of new features and fixes in April. We hope you enjoy it.
Here is an overview of some of the updates contained in this release:
主要改进点:
- 双击编辑器可以改变大小
- 调试性能提升和对Node.js更好的支持
- 外部shell调用配置
扩展作者会尤其喜欢这个版本,理由如下:
- 更新了语言Server协议
- 增加调试适配器测试支持
- 增加非常多的新的API,如打开文件夹,增加JSON模式验证,调试时操作
分享一种修改侧边栏主题的方法: https://github.com/wangchi/vscode-color-theme-extension 预览: solarized-dark.png
大神,我想问个问题,你培训一个人收费99元,但是有可能花的时间不止1个小时,按你的能力1个小时能挣的肯定不止99,我想问问你是出于什么目的的,因为我最近也在考虑是不是要搞个培训
@i5ting 死活打不开,执行路径配置的是用的 brew 安装的 vim7.4的路径。 用的 zsh + iterm ,顺便把 terminal 也打开了。 执行 openvim没有看到iterm或terminal有任何反应,虽然vsc的目录中多了一个.swap文件。