<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>#快捷键 on YuChu's Blog</title><link>/tags/%23%E5%BF%AB%E6%8D%B7%E9%94%AE/</link><description>Recent content in #快捷键 on YuChu's Blog</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Tue, 26 Mar 2024 17:12:02 +0000</lastBuildDate><atom:link href="/tags/%23%E5%BF%AB%E6%8D%B7%E9%94%AE/index.xml" rel="self" type="application/rss+xml"/><item><title>VSCode常用快捷键及插件</title><link>/posts/vscode%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%8F%8A%E6%8F%92%E4%BB%B6/</link><pubDate>Tue, 26 Mar 2024 17:12:02 +0000</pubDate><guid>/posts/vscode%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%8F%8A%E6%8F%92%E4%BB%B6/</guid><description>&lt;h1 id="常用快捷键">&lt;a href="#%e5%b8%b8%e7%94%a8%e5%bf%ab%e6%8d%b7%e9%94%ae" class="header-anchor">&lt;/a> 常用快捷键
&lt;/h1>&lt;h2 id="注释">&lt;a href="#%e6%b3%a8%e9%87%8a" class="header-anchor">&lt;/a>注释
&lt;/h2>&lt;ul>
&lt;li>
&lt;p>单行注释：&lt;code>[ctrl+k,ctrl+c] 或 ctrl+/&lt;/code>&lt;/p>
&lt;/li>
&lt;li>
&lt;p> 取消单行注释：&lt;code>[ctrl+k,ctrl+u] (按下ctrl不放，再按k + u)&lt;/code>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>多行注释：&lt;code>[alt+shift+A]&lt;/code>&lt;/p>
&lt;/li>
&lt;li>
&lt;p> 多行注释：&lt;code>/**&lt;/code>&lt;/p>
&lt;/li>
&lt;/ul>
&lt;!-- more -->
&lt;h2 id="移动行">&lt;a href="#%e7%a7%bb%e5%8a%a8%e8%a1%8c" class="header-anchor">&lt;/a>移动行
&lt;/h2>&lt;p>&lt;code>alt+up/down&lt;/code>&lt;/p>
&lt;h2 id="显示隐藏左侧目录栏">&lt;a href="#%e6%98%be%e7%a4%ba%e9%9a%90%e8%97%8f%e5%b7%a6%e4%be%a7%e7%9b%ae%e5%bd%95%e6%a0%8f" class="header-anchor">&lt;/a>显示/隐藏左侧目录栏
&lt;/h2>&lt;p>&lt;code>Ctrl+b&lt;/code>&lt;/p>
&lt;h2 id="复制当前行">&lt;a href="#%e5%a4%8d%e5%88%b6%e5%bd%93%e5%89%8d%e8%a1%8c" class="header-anchor">&lt;/a>复制当前行
&lt;/h2>&lt;p>&lt;code>shift + alt +up/down&lt;/code>&lt;/p>
&lt;h2 id="删除当前行">&lt;a href="#%e5%88%a0%e9%99%a4%e5%bd%93%e5%89%8d%e8%a1%8c" class="header-anchor">&lt;/a>删除当前行
&lt;/h2>&lt;p>&lt;code>shift + ctrl + k&lt;/code>&lt;/p>
&lt;h2 id="控制台终端显示与隐藏">&lt;a href="#%e6%8e%a7%e5%88%b6%e5%8f%b0%e7%bb%88%e7%ab%af%e6%98%be%e7%a4%ba%e4%b8%8e%e9%9a%90%e8%97%8f" class="header-anchor">&lt;/a>控制台终端显示与隐藏
&lt;/h2>&lt;p>&lt;code>Ctrl + ~&lt;/code>&lt;/p>
&lt;h2 id="查找文件安装vs-code-插件地址">&lt;a href="#%e6%9f%a5%e6%89%be%e6%96%87%e4%bb%b6%e5%ae%89%e8%a3%85vs-code-%e6%8f%92%e4%bb%b6%e5%9c%b0%e5%9d%80" class="header-anchor">&lt;/a>查找文件/安装vs code 插件地址
&lt;/h2>&lt;p>&lt;code>Ctrl + p&lt;/code>&lt;/p>
&lt;h2 id="代码格式化">&lt;a href="#%e4%bb%a3%e7%a0%81%e6%a0%bc%e5%bc%8f%e5%8c%96" class="header-anchor">&lt;/a>代码格式化
&lt;/h2>&lt;p>&lt;code>shift + alt + f&lt;/code>&lt;/p>
&lt;h2 id="新建窗口">&lt;a href="#%e6%96%b0%e5%bb%ba%e7%aa%97%e5%8f%a3" class="header-anchor">&lt;/a>新建窗口
&lt;/h2>&lt;p>&lt;code>ctrl + shift + n&lt;/code>&lt;/p>
&lt;h2 id="行增加缩进">&lt;a href="#%e8%a1%8c%e5%a2%9e%e5%8a%a0%e7%bc%a9%e8%bf%9b" class="header-anchor">&lt;/a>行增加缩进
&lt;/h2>&lt;p>&lt;code>Ctrl + [&lt;/code>&lt;/p>
&lt;h2 id="行减少缩进">&lt;a href="#%e8%a1%8c%e5%87%8f%e5%b0%91%e7%bc%a9%e8%bf%9b" class="header-anchor">&lt;/a>行减少缩进
&lt;/h2>&lt;p>&lt;code>Ctrl + ]&lt;/code>&lt;/p>
&lt;h2 id="裁剪尾随空格">&lt;a href="#%e8%a3%81%e5%89%aa%e5%b0%be%e9%9a%8f%e7%a9%ba%e6%a0%bc" class="header-anchor">&lt;/a>裁剪尾随空格
&lt;/h2>&lt;p>&lt;code>Ctrl + shift + x&lt;/code>&lt;/p>
&lt;h2 id="字体放大缩小">&lt;a href="#%e5%ad%97%e4%bd%93%e6%94%be%e5%a4%a7%e7%bc%a9%e5%b0%8f" class="header-anchor">&lt;/a>字体放大(缩小)
&lt;/h2>&lt;p>&lt;code>Ctrl + (或-)&lt;/code>&lt;/p>
&lt;h2 id="拆分编辑器">&lt;a href="#%e6%8b%86%e5%88%86%e7%bc%96%e8%be%91%e5%99%a8" class="header-anchor">&lt;/a>拆分编辑器
&lt;/h2>&lt;p>&lt;code>Ctrl +1/2/3&lt;/code>&lt;/p>
&lt;h2 id="切换窗口">&lt;a href="#%e5%88%87%e6%8d%a2%e7%aa%97%e5%8f%a3" class="header-anchor">&lt;/a>切换窗口
&lt;/h2>&lt;p>&lt;code>ctrl + shift + left/right&lt;/code>&lt;/p>
&lt;h2 id="关闭编辑器窗口">&lt;a href="#%e5%85%b3%e9%97%ad%e7%bc%96%e8%be%91%e5%99%a8%e7%aa%97%e5%8f%a3" class="header-anchor">&lt;/a>关闭编辑器窗口
&lt;/h2>&lt;p>&lt;code>Ctrl + w&lt;/code>&lt;/p>
&lt;h2 id="关闭所有窗口">&lt;a href="#%e5%85%b3%e9%97%ad%e6%89%80%e6%9c%89%e7%aa%97%e5%8f%a3" class="header-anchor">&lt;/a>关闭所有窗口
&lt;/h2>&lt;p>&lt;code>Ctrl + k + w&lt;/code>&lt;/p>
&lt;h2 id="切换全屏">&lt;a href="#%e5%88%87%e6%8d%a2%e5%85%a8%e5%b1%8f" class="header-anchor">&lt;/a>切换全屏
&lt;/h2>&lt;p>&lt;code>f11&lt;/code>&lt;/p>
&lt;h2 id="自动换行">&lt;a href="#%e8%87%aa%e5%8a%a8%e6%8d%a2%e8%a1%8c" class="header-anchor">&lt;/a>自动换行
&lt;/h2>&lt;p>&lt;code>alt + z&lt;/code>&lt;/p>
&lt;h2 id="显示git">&lt;a href="#%e6%98%be%e7%a4%bagit" class="header-anchor">&lt;/a>显示Git
&lt;/h2>&lt;p>&lt;code>Ctrl + shift + g&lt;/code>&lt;/p>
&lt;h2 id="全局查找文件">&lt;a href="#%e5%85%a8%e5%b1%80%e6%9f%a5%e6%89%be%e6%96%87%e4%bb%b6" class="header-anchor">&lt;/a>全局查找文件
&lt;/h2>&lt;p>&lt;code>Ctrl + shift + f&lt;/code>&lt;/p>
&lt;h2 id="显示相关插件的命令如git-log">&lt;a href="#%e6%98%be%e7%a4%ba%e7%9b%b8%e5%85%b3%e6%8f%92%e4%bb%b6%e7%9a%84%e5%91%bd%e4%bb%a4%e5%a6%82git-log" class="header-anchor">&lt;/a>显示相关插件的命令(如：git log)
&lt;/h2>&lt;p>&lt;code>Ctrl + shift + p&lt;/code>&lt;/p>
&lt;h2 id="选中文字">&lt;a href="#%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97" class="header-anchor">&lt;/a>选中文字
&lt;/h2>&lt;p>&lt;code>shift + left / right / up / down&lt;/code>&lt;/p>
&lt;h2 id="折叠代码">&lt;a href="#%e6%8a%98%e5%8f%a0%e4%bb%a3%e7%a0%81" class="header-anchor">&lt;/a>折叠代码
&lt;/h2>&lt;p>&lt;code>ctrl + k + 0-9 (0是完全折叠)&lt;/code>&lt;/p>
&lt;h2 id="展开代码">&lt;a href="#%e5%b1%95%e5%bc%80%e4%bb%a3%e7%a0%81" class="header-anchor">&lt;/a>展开代码
&lt;/h2>&lt;p>&lt;code>ctrl + k + j (完全展开代码)&lt;/code>&lt;/p>
&lt;h2 id="删除行">&lt;a href="#%e5%88%a0%e9%99%a4%e8%a1%8c" class="header-anchor">&lt;/a>删除行
&lt;/h2>&lt;p>&lt;code>Ctrl + shift + k&lt;/code>&lt;/p>
&lt;h2 id="快速切换主题">&lt;a href="#%e5%bf%ab%e9%80%9f%e5%88%87%e6%8d%a2%e4%b8%bb%e9%a2%98" class="header-anchor">&lt;/a>快速切换主题
&lt;/h2>&lt;p>&lt;code>Ctrl + k/Ctrl + t&lt;/code>&lt;/p>
&lt;h2 id="快速回到顶部底部">&lt;a href="#%e5%bf%ab%e9%80%9f%e5%9b%9e%e5%88%b0%e9%a1%b6%e9%83%a8%e5%ba%95%e9%83%a8" class="header-anchor">&lt;/a>快速回到顶部/底部
&lt;/h2>&lt;p>&lt;code>Ctrl + home/end&lt;/code>&lt;/p>
&lt;h2 id="格式化选定代码">&lt;a href="#%e6%a0%bc%e5%bc%8f%e5%8c%96%e9%80%89%e5%ae%9a%e4%bb%a3%e7%a0%81" class="header-anchor">&lt;/a>格式化选定代码
&lt;/h2>&lt;p>&lt;code>Ctrl + k/f&lt;/code>&lt;/p>
&lt;h2 id="选中代码">&lt;a href="#%e9%80%89%e4%b8%ad%e4%bb%a3%e7%a0%81" class="header-anchor">&lt;/a>选中代码
&lt;/h2>&lt;p>&lt;code>shift + 鼠标左键&lt;/code>&lt;/p>
&lt;h2 id="多行同时添加内容光标">&lt;a href="#%e5%a4%9a%e8%a1%8c%e5%90%8c%e6%97%b6%e6%b7%bb%e5%8a%a0%e5%86%85%e5%ae%b9%e5%85%89%e6%a0%87" class="header-anchor">&lt;/a>多行同时添加内容（光标）
&lt;/h2>&lt;p>&lt;code>ctrl + alt + up/down&lt;/code>&lt;/p>
&lt;h2 id="全局替换">&lt;a href="#%e5%85%a8%e5%b1%80%e6%9b%bf%e6%8d%a2" class="header-anchor">&lt;/a>全局替换
&lt;/h2>&lt;p>&lt;code>ctrl + shift + h&lt;/code>&lt;/p>
&lt;h2 id="当前文件替换">&lt;a href="#%e5%bd%93%e5%89%8d%e6%96%87%e4%bb%b6%e6%9b%bf%e6%8d%a2" class="header-anchor">&lt;/a>当前文件替换
&lt;/h2>&lt;p>&lt;code>Ctrl + h&lt;/code>&lt;/p>
&lt;h2 id="打开最近打开的文件">&lt;a href="#%e6%89%93%e5%bc%80%e6%9c%80%e8%bf%91%e6%89%93%e5%bc%80%e7%9a%84%e6%96%87%e4%bb%b6" class="header-anchor">&lt;/a>打开最近打开的文件
&lt;/h2>&lt;p>&lt;code>Ctrl + r&lt;/code>&lt;/p>
&lt;h2 id="打开新的命令窗">&lt;a href="#%e6%89%93%e5%bc%80%e6%96%b0%e7%9a%84%e5%91%bd%e4%bb%a4%e7%aa%97" class="header-anchor">&lt;/a>打开新的命令窗
&lt;/h2>&lt;p>&lt;code>ctrl + shift + c&lt;/code>&lt;/p>
&lt;h1 id="常用插件">&lt;a href="#%e5%b8%b8%e7%94%a8%e6%8f%92%e4%bb%b6" class="header-anchor">&lt;/a>常用插件
&lt;/h1>&lt;h3 id="1auto-rename-tag">&lt;a href="#1auto-rename-tag" class="header-anchor">&lt;/a>1、Auto Rename Tag
&lt;/h3>&lt;p>修改html标签，自动帮你完成尾部闭合标签的同步修改，和webstorm一样。&lt;/p>
&lt;h3 id="2auto-close-tag">&lt;a href="#2auto-close-tag" class="header-anchor">&lt;/a>2、Auto Close Tag
&lt;/h3>&lt;p>自动闭合HTML标签&lt;/p>
&lt;h3 id="4beautiful">&lt;a href="#4beautiful" class="header-anchor">&lt;/a>4、Beautiful
&lt;/h3>&lt;p>格式化代码的工具&lt;/p>
&lt;h3 id="5dash-dash">&lt;a href="#5dash-dash" class="header-anchor">&lt;/a>5、Dash Dash
&lt;/h3>&lt;p>是MacOS的API文档浏览器和代码段管理器&lt;/p>
&lt;h3 id="6ejs-snippets-ejs">&lt;a href="#6ejs-snippets-ejs" class="header-anchor">&lt;/a>6、Ejs Snippets ejs
&lt;/h3>&lt;p>代码提示&lt;/p>
&lt;h3 id="7eslint">&lt;a href="#7eslint" class="header-anchor">&lt;/a>7、ESLint
&lt;/h3>&lt;p>检查javascript语法错误与提示&lt;/p>
&lt;h3 id="8file-navigator">&lt;a href="#8file-navigator" class="header-anchor">&lt;/a>8、File Navigator
&lt;/h3>&lt;p>快速查找文件&lt;/p>
&lt;h3 id="9git-historygit-log">&lt;a href="#9git-historygit-log" class="header-anchor">&lt;/a>9、Git History(git log)
&lt;/h3>&lt;p>查看git log&lt;/p>
&lt;h3 id="10gulp-snippets">&lt;a href="#10gulp-snippets" class="header-anchor">&lt;/a>10、Gulp Snippets
&lt;/h3>&lt;p>写gulp时用到，gulp语法提示。&lt;/p>
&lt;h3 id="11html-css-support">&lt;a href="#11html-css-support" class="header-anchor">&lt;/a>11、HTML CSS Support
&lt;/h3>&lt;p>在HTML标签上写class智能提示当前项目所支持的样式&lt;/p>
&lt;h3 id="12html-snippets">&lt;a href="#12html-snippets" class="header-anchor">&lt;/a>12、HTML Snippets
&lt;/h3>&lt;p>超级好用且初级的H5代码片段以及提示&lt;/p>
&lt;h3 id="13debug-for-chrome">&lt;a href="#13debug-for-chrome" class="header-anchor">&lt;/a>13、Debug for Chrome
&lt;/h3>&lt;p>让vs code映射chrome的debug功能，静态页面都可以用vscode来打断点调试、配饰稍微复杂一点&lt;/p>
&lt;h3 id="14document-this">&lt;a href="#14document-this" class="header-anchor">&lt;/a>14、Document this
&lt;/h3>&lt;p>Js的注释模板&lt;/p>
&lt;h3 id="15jquery-code-snippets">&lt;a href="#15jquery-code-snippets" class="header-anchor">&lt;/a>15、jQuery Code Snippets
&lt;/h3>&lt;p>jquery提示工具&lt;/p>
&lt;h3 id="16html2jade">&lt;a href="#16html2jade" class="header-anchor">&lt;/a>16、Html2jade
&lt;/h3>&lt;p>html模板转pug模板&lt;/p>
&lt;h3 id="17js-css-html">&lt;a href="#17js-css-html" class="header-anchor">&lt;/a>17、JS-CSS-HTML
&lt;/h3>&lt;p>Formatter 格式化&lt;/p>
&lt;h3 id="18npm-intellisense">&lt;a href="#18npm-intellisense" class="header-anchor">&lt;/a>18、Npm intellisense
&lt;/h3>&lt;p>require 时的包提示工具&lt;/p>
&lt;h3 id="19open-in-browser">&lt;a href="#19open-in-browser" class="header-anchor">&lt;/a>19、Open in browser
&lt;/h3>&lt;p>打开默认浏览器&lt;/p>
&lt;h3 id="20one-dark-theme">&lt;a href="#20one-dark-theme" class="header-anchor">&lt;/a>20、One Dark Theme
&lt;/h3>&lt;p>一个vs code的主题&lt;/p>
&lt;h3 id="21path-intellisense">&lt;a href="#21path-intellisense" class="header-anchor">&lt;/a>21、Path Intellisense
&lt;/h3>&lt;p>自动路径补全、默认不带这个功能&lt;/p>
&lt;h3 id="22project-manager">&lt;a href="#22project-manager" class="header-anchor">&lt;/a>22、Project Manager
&lt;/h3>&lt;p>多个项目之间快速切换的工具&lt;/p>
&lt;h3 id="23typings-auto-installer">&lt;a href="#23typings-auto-installer" class="header-anchor">&lt;/a>23、Typings auto installer
&lt;/h3>&lt;p>安装vscode 的代码提示依赖库，基于typtings的&lt;/p>
&lt;h3 id="24view-in-browser">&lt;a href="#24view-in-browser" class="header-anchor">&lt;/a>24、View In Browser 　
&lt;/h3>&lt;p>默认浏览器查看HTML文件（快捷键Ctrl+F1可以修改）&lt;/p>
&lt;h3 id="25vscode-icons">&lt;a href="#25vscode-icons" class="header-anchor">&lt;/a>25、Vscode-icons
&lt;/h3>&lt;p>让vscode资源目录加上图标、必备&lt;/p>
&lt;h3 id="26vuehelper">&lt;a href="#26vuehelper" class="header-anchor">&lt;/a>26、VueHelper
&lt;/h3>&lt;p>Vue2代码段（包括Vue2 api、vue-router2、vuex2）&lt;/p>
&lt;h3 id="27vue-2-snippets">&lt;a href="#27vue-2-snippets" class="header-anchor">&lt;/a>27、Vue 2 Snippets
&lt;/h3>&lt;p>vue必备vue代码提示&lt;/p>
&lt;h3 id="28vue-color">&lt;a href="#28vue-color" class="header-anchor">&lt;/a>28、Vue-color
&lt;/h3>&lt;p>vue语法高亮主题&lt;/p>
&lt;h3 id="29auto-open-markdown-preview">&lt;a href="#29auto-open-markdown-preview" class="header-anchor">&lt;/a>29、Auto-Open Markdown Preview
&lt;/h3>&lt;p>markdown文件自动开启预览&lt;/p></description></item></channel></rss>