一般情况下,快捷键如下:
- 转换为大写:Ctrl+Shift+u
- 转换为小写:Ctrl+Shift+l
如果不行的话,需要单独进行设置,步骤如下:
1、点击【文件】-【首选项】-【键盘快捷方式】菜单:


2、输入「转换为大写」,会出现搜索结果。鼠标悬停在该结果上,点击前面的【加号】,会弹出输入自定义快捷键的弹窗。


3、在键盘上依次按下 Ctrl
,Shift
和 u
,即可成功设置「转换为大写」快捷键。

4、同样方法设置「转换为小写」快捷键,这里就不多说了。
如果不想用这种方式,还可以在 keybindings.json
文件中增加如下代码即可:
{
"key": "ctrl+shift+u",
"command": "editor.action.transformToUppercase",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+l",
"command": "editor.action.transformToLowercase",
"when": "editorTextFocus"
}
经典推荐:
- 100 本计算机经典书籍(含下载方式)
- 技术博客: 硬核后端技术干货,内容包括 Python、Django、Docker、Go、Redis、ElasticSearch、Kafka、Linux 等。
- Go 程序员: Go 学习路线图,包括基础专栏,进阶专栏,源码阅读,实战开发,面试刷题,必读书单等一系列资源。
- 面试题汇总: 包括 Python、Go、Redis、MySQL、Kafka、数据结构、算法、编程、网络等各种常考题。
网友评论