selection//格式化选定区域F12转到定义Go to DefinitionAlt + F12Peek定义Peek DefinitionCtrl + K F12打开定义到边Open Definition to the sideCtrl + .快速解决Quick FixShift + F12显示引用Show ReferencesF2重命名符号Rename SymbolCtrl + Shift + . /,替换为下一个/上一个值Replace with next/previous value...
Ctrl+X 剪切行(空选定) Cut line (empty selection) Ctrl+C 复制行(空选定)Copy line (empty selection) Alt+ ↑ / ↓ 向上/向下移动行 Move line up/down Shift+Alt + ↓ / ↑ 向上/向下复制行 Copy line up/down Ctrl+Shift+K 删除行 Delete line Ctrl+Enter 在下面插入行 Insert line below Ctrl...
Ctrl+P Quick Open Ctrl+Shift+N New window/instance Ctrl+Shift+W Close window/instance Ctrl+X Cut line (empty selection) Ctrl+C Copy line (empty selection) Alt+Up Arrow/Down Arrow Move line up/down Shift+Alt+Down Arrow/Up Arrow Copy line up/down Ctrl+Shift+K Delete line Ctrl+Enter In...
目录 VS Code 快捷键整理 基础编辑 Basic editing 导航Navigation 搜索和替换 Search and replace 多光标和选择 Multi-cursor and selection 丰富的语言编辑 Rich languages editing 编辑器管理 Editor management 文件管理 File management 显示Display 调试Debug 集成终端 Integrated terminal 基础编辑 Basic editing 导航Nav...
text)})**\n\n`; return new vscode.Hover(pre + word.replace(/\r\n/g, ' \r\n')); 拿到翻译结果后,触发显示为: 这里一个很有意思的点,给你拼装了一段可打开的Google Translate链接,非常体贴了可以说。 这个插件作为一个vscode插件开发初体验,是不错的。 2.5 额外小发现:google-translate-api ...
在开始正题之前,我们先回忆一下自己在 VS Code 上常用并且获得编码幸福度的是不是包含以下几个点。 1.1、Snippet - 代码片段 我们经常可以在不同后缀的文件还有文件里不同地方都看到代码片段。输入约定的几个短短字符,就可以拥有一片或大或小的代码段,解放双手,节约时间,还能提升每日代码量。 以下图片来自插件: ...
替换文件 Replace in files Ctrl + Shift + J 切换搜索详细信息 Toggle Search details Ctrl + Shift + C 打开新命令提示符/终端 Open new command prompt/terminal Ctrl + Shift +U 显示输出面板 Show Output panel Ctrl + Shift + V 切换Markdown 预览 Toggle Markdown preview Ctrl + K V 从旁边打开 ...
在做替换操作时,VS Code的Replace输入框右侧有一个高级选项,上面标有“AB”的字样,这一节课我们就来学习下它的用法,有些情况下,使用这个选项可以带来很大的帮助。这个选项的名字叫做Preserve Case,翻译成中文就是“保留大小写”。它的具体作用是:当我们做替换操作时,匹配结果中如果包含了一部分大小写不一致的匹配...
The application name of the editor, like 'VS Code'.appRoot: stringThe application root folder from which the editor is running. Note that the value is the empty string when running in an environment that has no representation of an application root folder....
Replace new lines and whitespace with a single spaceandreplace whitespace with a single space Split linesby spaces, semicolons, commas, pipes or any custom string. Join every two or N lines(using only the raw lines or glue them together with spaces, semicolons, commas, pipes or any custom...