[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)。