专职C++

不能停止的脚步

  C++博客 :: 首页 :: 联系 :: 聚合  :: 管理
  163 Posts :: 7 Stories :: 135 Comments :: 0 Trackbacks

常用链接

留言簿(28)

我参与的团队

搜索

  •  

最新评论

阅读排行榜

评论排行榜

跟据vscode官网pdf,再编辑

Visual Studio Code Keyboard shortcuts for windows

General

快捷键说明
Ctrl+Shift+P, F1Show Command Palette
Ctrl+PQuick Open
Ctrl+Shift+NNew window/instance
Ctrl+Shift+WClose window/instance

Basic editing

快捷键说明
Ctrl+XCut line (empty selection)
Ctrl+CCopy line (empty selection)
Alt+ ↑ / ↓Move line up/down
Shift+Alt + ↓ / ↑Copy line up/down
Ctrl+Shift+KDelete line
Ctrl+EnterInsert line below
Ctrl+Shift+EnterInsert line above
Ctrl+Shift+\|Jump to matching bracket
Ctrl+] / [Indent/outdent line
HomeGo to beginning of line End Go to end of line
Ctrl+HomeGo to beginning of file
Ctrl+EndGo to end of file
Ctrl+↑ / ↓Scroll line up/down
Alt+PgUp / PgDownScroll 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+0Fold (collapse) all regions zz
Ctrl+K Ctrl+JUnfold (uncollapse) all regions
Ctrl+K Ctrl+CAdd line comment
Ctrl+K Ctrl+URemove line comment
Ctrl+/Toggle line comment
Shift+Alt+AToggle block comment
Alt+ZToggle word wrap

Navigation

快捷键说明
Ctrl+TShow all Symbols
Ctrl+Go to Line…
Ctrl+PGo to File…
Ctrl+Shift+OGo to Symbol…
Ctrl+Shift+MShow Problems panel
F8Go to next error or warning
Shift+F8Go to previous error or warning
Ctrl+Shift+TabNavigate editor group history
Alt+ ← / →Go back / forward
Ctrl+MToggle Tab moves focus

Search and replace

快捷键说明
Ctrl+FFind
Ctrl+HReplace
F3 / Shift+F3Find next/previous
Alt+EnterSelect all occurences of Find match
Ctrl+DAdd selection to next Find match
Ctrl+K Ctrl+DMove last selection to next Find match
Alt+C / R / WToggle case-sensitive / regex / whole word

Multi-cursor and selection

快捷键说明
Alt+ClickInsert cursor
Ctrl+Alt+ ↑ / ↓Insert cursor above / below
Ctrl+UUndo last cursor operation
Shift+Alt+IInsert cursor at end of each line selected
Ctrl+ISelect current line
Ctrl+Shift+LSelect all occurrences of current selection
Ctrl+F2Select all occurrences of current word
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/PgDownColumn (box) selection page up/down

Rich languages editing

快捷键说明
Ctrl+SpaceTrigger suggestion
Ctrl+Shift+SpaceTrigger parameter hints Tab Emmet expand abbreviation
Shift+Alt+FFormat document
F12Go to Definition
Alt+F12Peek Definition
Ctrl+K F12Open Definition to the side
Ctrl+.Quick Fix
Shift+F12Show References
F2Rename Symbol
Ctrl+Shift+ . / ,Replace with next/previous value
Ctrl+K Ctrl+XTrim trailing whitespace
Ctrl+K Ctrl+MChange file language

Editor management

快捷键说明
Ctrl+F4, Ctrl+WClose editor
Ctrl+K FClose folder
Ctrl+|Split editor
Ctrl+ 1 / 2 / 3Focus into 1st, 2nd or 3rd editor group
Ctrl+K Ctrl+ ←/→Focus into previous/next editor group
Ctrl+Shift+PgUp / PgDownMove editor left/right
Ctrl+K ← / →Move active editor group

File management

快捷键说明
Ctrl+NNew File
Ctrl+OOpen File…
Ctrl+SSave
Ctrl+Shift+SSave As…
Ctrl+K Ctrl+SSave All
Ctrl+F4Close
Ctrl+K Ctrl+WClose All
Ctrl+Shift+TReopen closed editor
Ctrl+KEnter Keep Open
Ctrl+TabOpen next
Ctrl+Shift+TabOpen previous
Ctrl+K Ctrl+PCopy path of active file
Ctrl+K Ctrl+RReveal active file in Explorer
Ctrl+K Ctrl+OShow active file in new window/instance

Display

快捷键说明
F11Toggle full screen
Shift+Alt+1Toggle editor layout
Ctrl+ = / -Zoom in/out
Ctrl+BToggle Sidebar visibility
Ctrl+Shift+EShow Explorer / Toggle focus
Ctrl+Shift+FShow Search
Ctrl+Shift+GShow Git
Ctrl+Shift+DShow Debug
Ctrl+Shift+XShow Extensions
Ctrl+Shift+HReplace in files
Ctrl+Shift+JToggle Search details
Ctrl+Shift+COpen new command prompt/terminal
Ctrl+Shift+UShow Output panel
Ctrl+Shift+VToggle Markdown preview
Ctrl+K Ctrl+VOpen Markdown preview to the side

Debug

快捷键说明
F9Toggle breakpoint
F5Start/Continue
Shift+F5Stop
F11 / Shift+F11Step into/out
F10Step over
Ctrl+K Ctrl+IShow hover

Integrated terminal

快捷键说明
Ctrl+`Show integrated terminal
Ctrl+Shift+`Create new terminal
Ctrl+Shift+CCopy selection
Ctrl+Shift+VPaste into active terminal
Ctrl+↑ / ↓Scroll up/down
Shift+PgUp / PgDownScroll page up/down
Ctrl+Home / EndScroll to top/bottom
posted on 2017-08-25 10:31 冬瓜 阅读(1952) 评论(0)  编辑 收藏 引用 所属分类: 转贴

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理