zoukankan      html  css  js  c++  java
  • vsCode快捷键大全

    1.vscode初始文档:https://code.visualstudio.com/docs/getstarted/tips-and-tricks     【在谷歌浏览器中 可以 右键 选择 ‘翻成中文(简体)】

    2.英文版快捷键pdf链接:https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

    3.中英文版快捷键: (轻薄笔记本电脑快捷键 + Fn + 快捷键: 例如:Home / end  =》  Fn + Home/ end )

    General  (一般的 (快捷键))

       
    Ctrl + shift + p ,  F1 show command palette 显示命令设置窗口
    Ctrl + p quick open, go to file …  快速打开,进入指定文件
    Ctrl + shift + n new window/instance 新建窗口/实例
    Ctrl + shift + w close window/instance 关闭窗口/实例
    Ctrl +,  user settings 用户设置
    Ctrl + k  Ctrl + s keyboard shortcuts 键盘快捷方式

     

    Basic editing ( 基本编辑 (快捷键))

       
    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 + shift + enter insert line above 在上方插入空白行
    Ctrl + shift + jump to matching bracket 跳转到匹配的括号
    Ctrl + ] / [ indent/outdent line 缩进/不缩进
    Home / end go to beginning/end of line 跳转到行首/行尾
    轻薄笔记本电脑快捷键( Fn + Home/ end )
    Ctrl + home go to beginning of file 跳转到文件首行
    Ctrl + end go to end of file 跳转到文件尾行
    Ctrl + ↑ / ↓ scroll line up/down (小范围)滚动至上/下(查看代码)
    Alt + pgup/pgdn scroll page up/down (大范围)滚动至页面上/下(查看代码)
    Ctrl + shift + [ fold(collapse) region 折叠当前区域
    Ctrl + shift + ] unfold(uncollapse) region 展开当前区域
    Ctrl + K Ctrl + [ Fold (collapse) all subregions 折叠所有子区域
    Ctrl + K Ctrl + ]  Unfold (uncollapse) all subregions 展开所有子区域
    Ctrl + K Ctrl + 0 Fold (collapse) all regions 折叠所有区域(oO0 : 是数字0)
    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 word wrap 切换换行/相对窗口过长的行代码进行换行

    Navigation(导航)

       
    Ctrl+T Show all Symbols 显示所有符号(包括标签符号,用@开头)
    Ctrl+G Go to Line... 跳转到特定行
    Ctrl+P Go to File... 快速打开,进入指定文件
    Ctrl+Shift+O Go to Symbol... 跳转到特定符号(包括标签符号)
    Ctrl+Shift+M Show Problems panel  显示问题面板
    F8 Go to next error or warning 转到下一个错误或警告
    Shift+F8 Go to previous error or warning 转到上一个错误或警告
    Ctrl+Shift+Tab Navigate editor group history (跳转到)导航编辑器组历史记录
    Alt+ ← / → Go back / forward (文件之间切换)后退/前进
    Ctrl + m Toggle Tab moves focus 切换选项卡移动焦点

    Search and replace (查找和替换)

       
    Ctrl+F

    Find

    查找

    Ctrl+H Replace 替换
    F3 / Shift+F3 Find next/previous 查找下一个/上一个
    Alt+Enter Select all occurences of Find match 选择查找匹配的所有匹配项
    Ctrl+D Add selection to next Find match 将所选内容添加到下一个查找匹配项
    Ctrl+K Ctrl+D Move last selection to next Find match 将上次选择移动到下一个查找匹配项
    Alt+C / R / W Toggle case-sensitive / regex / whole word 切换区分大小写/正则表达式/整字

    Multi-cursor and selection (多光标和选择)

       
    Alt+Click Insert cursor 插入光标
    Ctrl+Alt+ ↑ / ↓ Insert cursor above / below 在上方/下方插入光标
    Ctrl+U Undo last cursor operation 撤销上一个光标操作
    Shift+Alt+I Insert cursor at end of each line selected 在所选每行的末尾插入光标
    Ctrl+L Select current line 选中当前行
    Ctrl+Shift+L Select all occurrences of current selection 选择当前选择的所有引用
    Ctrl+F2 Select all occurrences of current word

    选择当前单词的所有出现位置 (例子:选出所有的 name 这个单词)

    Shift+Alt+→ Expand selection 拓展选定内容
    Shift+Alt+← Shrink selection 缩小选定范围
    Shift+Alt + (drag mouse) Column (box) selection (快捷键+拖动鼠标)(列(框)选择)
    Ctrl+Shift+Alt + (arrow key) Column (box) selection

    (快捷键+箭头键) (列(框)选择)

    Ctrl+Shift+Alt +PgUp/PgDn Column (box) selection page up/down (列(框)上/下所有固定位置选中)

    Rich languages editing (丰富语言编辑)

       
    Ctrl+Space Trigger suggestion 触发建议
    Ctrl+Shift+Space Trigger parameter hints 触发器参数提示
    Shift+Alt+F Format document 规范化文档(就是统一调整格式/规范化)
    Ctrl+K Ctrl+F Format selection 规范化选中的内容
    F12 Go to Definition 跳转到定义的位置(例如查看某个函数如何定义的)
    Alt+F12 Peek Definition 窥视定义(也是查看)
    Ctrl+K F12 Open Definition to the side 查看定义
    Ctrl+.  Quick Fix 快速修复
    Shift+F12 Show References 显示引用
    F2 Rename Symbol 重命名符号
    Ctrl+K Ctrl+X Trim trailing whitespace 修剪尾随空白
    Ctrl+K M Change file language 更改文件语言

    Editor management (编辑管理)

       
    Ctrl+F4, Ctrl+W Close editor 关闭编辑器
    Ctrl+K F Close folder 关闭文件夹
    Ctrl+ Split editor 拆分编辑器
    Ctrl+ 1 / 2 / 3 Focus into 1st, 2nd or 3rd editor group 聚焦到第一、第二或第三编辑组
    Ctrl+K Ctrl+ ←/→ Focus into previous/next editor group 聚焦到上一个/下一个编辑器组
    Ctrl+Shift+PgUp / PgDn Move editor left/right 左/右移动编辑器
    Ctrl+K ← / → Move active editor group 移动活动编辑器组

    File management (文件管理)

       
    Ctrl+N New File 新建文件
    Ctrl+O Open File... 打开文件
    Ctrl+S Save 保存
    Ctrl+Shift+S Save As.. 另存为
    Ctrl+K S Save All 保存所有
    Ctrl+F4 Close 关闭
    Ctrl+K Ctrl+W Close All 关闭所有
    Ctrl+Shift+T Reopen closed editor 重新打开关闭的编辑器
    Ctrl+K Enter Keep preview mode editor open 保持预览模式编辑器打开
    Ctrl+Tab Open next 打开下一个文件
    Ctrl+Shift+Tab Open previous 打开上一个文件
    Ctrl+K P Copy path of active file

    活动文件的复制路径(无效 ,shift+alt+c可以)

    Ctrl+K R  Reveal active file in Explorer 在资源管理器中显示活动文件
    Ctrl+K O Show active file in new window/instance 在新窗口/实例中显示活动文件

    Display (显示)

       
    F11 Toggle full screen 全屏切换
    Shift+Alt+0 Toggle editor layout (horizontal/vertical) 切换编辑器布局(水平/垂直)
    Ctrl+ = / - Zoom in/out 放大/缩小
    Ctrl+B Toggle Sidebar visibility 切换侧边栏可见性(侧边栏显示/隐藏)
    Ctrl+Shift+E Show Explorer / Toggle focus 显示资源管理器/切换焦点
    Ctrl+Shift+F Show Search 显示(侧边栏的)搜索
    Ctrl+Shift+G Show Source Control  显示源代码管理
    Ctrl+Shift+D Show Debug 显示调试
    Ctrl+Shift+X Show Extensions 显示拓展程序
    Ctrl+Shift+H Replace in files 在文件中替换
    Ctrl+Shift+J Toggle Search details 切换搜索详细信息
    Ctrl+Shift+U Show Output panel 显示输出面板
    Ctrl+Shift+V Open Markdown preview 打开标记预览
    Ctrl+K V Open Markdown preview to the side 打开侧面的标记预览
    Ctrl+K Z Zen Mode (Esc Esc to exit) 禅宗模式(按Esc键退出)

    Debug (调试)

       
    F9 Toggle breakpoint 切换断点
    F5 Start/Continue 开始/继续
    Shift+F5 Stop 停止
    F11 / Shift+F11 Step into/out 单步调试/跳出
    F10 Step over 跳过
    Ctrl+K Ctrl+I  Show hover 显示悬停

    Integrated terminal (集成终端)

       
    Ctrl+`  Show integrated terminal 显示集成终端
    Ctrl+Shift+` Create new terminal 新建终端
    Ctrl+C Copy selection 复制
    Ctrl+V Paste into active terminal 粘贴
    Ctrl+↑ / ↓ Scroll up/down 滚动至上/下(查看代码)
    Shift+PgUp / PgDn Scroll page up/down 滚动至页面上/下(连续选中)
    Ctrl+Home / End Scroll to top/bottom 滚动至页面顶部/底部
    其它:    
    ctrl + - / = Zoom out / in 调小/调大字体
    拓展:  
    压缩代码
    选中压缩的多行,右键选择 命令面板(command palette),输入 join Lines , 最后按 回车(enter)键
    更改系统语言
    ctrl + shift + p  或者 F1  , 输入 configure display language, 按回车键, 选择zh-cn 。(前提是提前安装了Chinese (中文简体)或其它语言插件)

    其它:在此搜索某个快捷键。例如搜索注释的快捷键。 Google浏览器中按 ctrl + f , 输入 注释  就会跳转到相关位置。

  • 相关阅读:
    聊一聊Flutter的setState()
    Flutter + Android 混合开发
    Flutter防止布局溢出
    Flutter获取远程数据 刷新UI界面
    Flutter日常笔记
    POJ 3299 Humidex
    POJ 1207 The 3n + 1 problem
    POJ 1005 I Think I Need a Houseboat
    POJ 1004 Financial Management
    POJ1012
  • 原文地址:https://www.cnblogs.com/FlyingLiao/p/12938800.html
Copyright © 2011-2022 走看看