Vscode设置大全
vscode的设置有点多
快捷键
此处应该设置: keyboard shortcut
format
- 原本: shift alt f
- 修改: alt f
设置
- 都在setting里面
tab
- editor: tab size 改为1
- 关掉, 这个要求不许用空格做缩进: Editor: Insert Spaces
打开自动换行
- editor: word wrap on
自动补全
- 小数点: 必须关掉
- Editor: Accept Suggestion On Commit Character
- 括号
- 关掉: Editor: Auto Closing Brackets
- 引号
- 必须关掉: “editor.autoClosingQuotes”: “never”
- 按键只用tab不用enter
- 必须关掉: Editor: Accept Suggestion On Enter
- Editor: Tab Completion 改为on
文件类型
- 把cs指定给coffee
- Files: Associations里面加一个就可以了
// Place your settings in this file to overwrite the default settings
{
"some_setting": custom_value,
...
"files.associations": {
"*.thor": "ruby",
"*.jsx": "javascript",
"Jenkinsfile*": "groovy"
}
}
# language id用view->command palette
- 参考: https://stackoverflow.com/questions/29973619/how-to-make-vs-code-treat-a-file-extensions-as-a-certain-language
紧凑模式
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 100