[b]一 、默认情况下VS Code的编辑菜单或快捷键中没有 转换为大写,转换为小写的功能[/b]
解决方案1:使用键盘配置,开启转换为小写,转换为大写的快捷键
以VS中的 快捷键为例:
小写 -》Ctrl+U
大写=》Ctrl+Shift+U
[img]http://files.jb51.net/file_images/article/201712/20171215115140957.png?20171115115150[/img]
解决方案2,直接修改keybings.json 添加配置
{
"key": "ctrl+shift+u",
"command": "editor.action.transformToUppercase",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+l",
"command": "editor.action.transformToLowercase",
"when": "editorTextFocus"
}
[b]二、工作区,配置修改,对应VsCode版本 v.14.2[/b]
相对工作区的优先级高
1.修改选中文字或代码的颜色
//设置用户选中代码段的颜色
"workbench.colorCustomizations": {
"editor.selectionBackground": "#aa0000"
}
修改后立即生效不用重启VsCode
[img]http://files.jb51.net/file_images/article/201712/20171215115249511.png?20171115115258[/img]
[b]三、修改VSCode 的注释的颜色[/b]
1.目前没有找到更好的方法,但是可以直接修改对应的主题源代码
2.示例如下:当前主题
[img]http://files.jb51.net/file_images/article/201712/20171215115324358.png?20171115115331[/img]
3.找到源代码:程序Code.exe位置,resources/app/extensions/xxxx
[img]http://files.jb51.net/file_images/article/201712/20171215115413859.png?20171115115423[/img]
3.修改注册的前景色
[img]http://files.jb51.net/file_images/article/201712/20171215115438178.png?20171115115445[/img]
修改结果:
[img]http://files.jb51.net/file_images/article/201712/20171215115456261.png?2017111511554[/img]
[b]总结[/b]
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,如果有疑问大家可以留言交流,谢谢大家对编程素材网的支持。