Ctrl + K Ctrl + C 添加行注释 Add line Comment 很好用的,和语言相关,不同语言都可以按照它的注释方法增加,这个和后面两个都是触发方式的,也就是说按一下加上,再按一下去掉,所以使用最后一个一个更好记的 Ctrl + / 吧 Ctrl + K Ctrl + U 删除行注释 Remove line comment 记成Unco
5. Commenting Code Blocks: To quickly comment out a block of code, you can use the shortcut key `Ctrl + K, Ctrl + C`. To uncomment the code block, use the shortcut key `Ctrl + K, Ctrl + U`. These are the basic ways to add comments in the English version of VS Code. Rememb...
"editorTextFocus" }, { "key": "ctrl+shift+k", //与删除一行的快捷键互换了:) "command": "editor.action.addSelectionToNextFindMatch", "when": "editorFocus" }, //ctrl+shift+/多行注释 { "key":"ctrl+shift+/", "command": "editor.action.blockComment", "when": "editorTextFocus" }...
Shift+Alt+A 切换块注释 Toggle block comment Alt+Z 切换换行 Toggle word wrap 导航Navigation 按Press功能Function Ctrl + T 显示所有符号 Show all Symbols Ctrl + G 转到行... Go to Line... Ctrl + P 转到文件... Go to File... Ctrl + Shift + O 转到符号... Go to Symbol... Ctrl + ...
(collapse) all regions Ctrl+K Ctrl+J 展开(未折叠)所有区域 Unfold (uncollapse) all regions Ctrl+K Ctrl+C 添加行注释 Add line comment Ctrl+K Ctrl+U 删除行注释 Remove line comment Ctrl+/ 切换行注释 Toggle line comment Shift+Alt+A 切换块注释 Toggle block comment Alt+Z 切换换行 Toggle ...
Shift+Alt+A Toggle block comment 把选定的块注释掉; Alt+Z Toggle word wrap 切换到自动换行,当你的行很长,不换行就用这个快捷键; Navigation - 导航 Ctrl+T Show all Symbols 显示所有符号; Ctrl+G Go to Line... 弹出导航栏,输入你要去的行号回车; Ctrl+P Go to File... 查找文件; Ctrl+Shift+...
{"key":"ctrl+shift+/","command":"editor.action.blockComment","when":"editorTextFocus"},// 定制与 sublime 相同的大小写转换快捷键,需安装 TextTransform 插件{"key":"ctrl+k ctrl+u","command":"uppercase","when":"editorTextFocus"},{"key":"ctrl+k ctrl+l","command":"lowercase","when...
一、简介 VsCode(Visual Studio Code),官网地址:https://code.visualstudio.com/ Visual Studio Code is a lightweight but powerful source code editor which runs on
vs code中安装了ESLint扩展,安装了eslint,@typescript-eslint/parser以及@typescript-eslint/eslint-plugin,并且配置了.eslintrc.json文件。使用命令行eslint index.ts会显示ts文件中的错误,但是在vscode中不能够以红色下划线提示。结果在output提示中,表示ESlint和@typescript-eslint/plugin安装路径不一致。 为了方...
Shift+Alt+A切换块注释 Toggle block comment Alt+Z切换换⾏ Toggle word wrap 导航 Navigation 按 Press功能 Function Ctrl + T显⽰所有符号 Show all Symbols Ctrl + G转到⾏... Go to Line...Ctrl + P转到⽂件... Go to File...Ctrl + Shift + O转到符号... Go to Symbol...Ctrl + ...