[BACKUP] Visual Studio Code 配置
0
VSCode 便携模式:https://code.visualstudio.com/docs/editor/portable#_enable-portable-mode
1. 字体
- FiraCode, https://github.com/tonsky/FiraCode
- source-code-pro, https://github.com/adobe-fonts/source-code-pro
2. settings.json
{
"editor.fontSize": 17,
"workbench.iconTheme": "material-icon-theme", //插件
"workbench.colorTheme": "Solarized Light", //自带主题
"editor.fontFamily": "'Fira Code Retina', '微软雅黑', Consolas, 'Courier New', monospace",
"editor.wordWrap": "bounded",
"csharp.referencesCodeLens.enabled": false,
}
3. 插件
- Chinese,中文包,https://marketplace.visualstudio.com/items?itemName=MS-CEINTL.vscode-language-pack-zh-hans
- C#,https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp
- Material Icon Theme,文件图标,https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme
- TabOut,简单跳出右括号,https://marketplace.visualstudio.com/items?itemName=albert.TabOut
- Unity Tools,https://marketplace.visualstudio.com/items?itemName=Tobiah.unity-tools
- Debugger for Unity,https://marketplace.visualstudio.com/items?itemName=Unity.unity-debug
- Unity Code Snippets,MonoBehaviours 等方法提示补全,https://marketplace.visualstudio.com/items?itemName=kleber-swf.unity-code-snippets
- XML Tools,https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml
4. Vscode 中设置C#右大括号不换行
在根目录创建 omnisharp.json 文件,添加以下代码:
// 更多属性和全局配置参考 https://github.com/OmniSharp/omnisharp-roslyn/wiki/Configuration-Options
{
"FormattingOptions": {
"NewLinesForBracesInLambdaExpressionBody": false,
"NewLinesForBracesInAnonymousMethods": false,
"NewLinesForBracesInAnonymousTypes": false,
"NewLinesForBracesInControlBlocks": false,
"NewLinesForBracesInTypes": false,
"NewLinesForBracesInMethods": false,
"NewLinesForBracesInProperties": false,
"NewLinesForBracesInObjectCollectionArrayInitializers": false,
"NewLinesForBracesInAccessors": false,
"NewLineForElse": false,
"NewLineForCatch": false,
"NewLineForFinally": false
}
}