[TOC]
# 教程
[VScodeCanDoThat](https://vscodecandothat.com/)
[https://flaviocopes.com/vscode/](https://flaviocopes.com/vscode/)
[https://www.sitepoint.com/visual-studio-code-power-user-guide/](https://www.sitepoint.com/visual-studio-code-power-user-guide/)
# 配置快捷键
> [Keyboard shortcut for copy of line doesn't work on Linux#6197](https://hub.fastgit.org/microsoft/vscode/issues/6197)
# 直接打开设置 json
```
// workbench's user-settings
"workbench.settings.useSplitJSON": true,
"workbench.settings.editor": "json",
```
或者 设置快捷键:
1. `ctrl + k` 和 `ctrl + s` 打开快捷键设置页面
2. 搜索:`open setting`
# 正则表达式替换
```
(id: (\d+),)
id: $2, \n order: $2,
```
[VSCode使用正则表达式进行内容替换](http://www.mamicode.com/info-detail-2440832.html)
## 尽可能使用非贪婪模式
例如:
```
bindtap=\'(.*?)' //非贪婪模式
onClick={this.$1} //替换为
```
[【正则表达式系列】贪婪与非贪婪模式]([https://dailc.github.io/2017/07/06/regularExpressionGreedyAndLazy.html](https://dailc.github.io/2017/07/06/regularExpressionGreedyAndLazy.html))
# 使用 `code`命令打开VSCode
运行VS code并打开命令面板( ⇧⌘P ),然后输入 `shell command` 找到: `Install 'code' = command in PATH` 就行了。
code命令还支持其他参数,具体看[这里](http://www.jianshu.com/p/3dda4756eca5)。