0 оценок0% нашли этот документ полезным (0 голосов)
51 просмотров1 страница
This document provides a summary of keyboard shortcuts for the Visual Studio Code editor on macOS. It includes shortcuts for general functions like finding, replacing, navigation, editing, debugging, and more. The shortcuts are organized into categories like basic editing, rich language editing, navigation, multi-cursor and selection, editor management, and file management. Many common shortcuts from other editors are supported, with modifier keys like command ⌘, option ⌥, control ⌃, and shift ⇧ used to trigger different commands.
This document provides a summary of keyboard shortcuts for the Visual Studio Code editor on macOS. It includes shortcuts for general functions like finding, replacing, navigation, editing, debugging, and more. The shortcuts are organized into categories like basic editing, rich language editing, navigation, multi-cursor and selection, editor management, and file management. Many common shortcuts from other editors are supported, with modifier keys like command ⌘, option ⌥, control ⌃, and shift ⇧ used to trigger different commands.
This document provides a summary of keyboard shortcuts for the Visual Studio Code editor on macOS. It includes shortcuts for general functions like finding, replacing, navigation, editing, debugging, and more. The shortcuts are organized into categories like basic editing, rich language editing, navigation, multi-cursor and selection, editor management, and file management. Many common shortcuts from other editors are supported, with modifier keys like command ⌘, option ⌥, control ⌃, and shift ⇧ used to trigger different commands.
⌘F Find ⌃Tab / ⌃⇧Tab Open next / previous Keyboard shortcuts for macOS Replace ⌥⌘F ⌘K P Copy path of active file ⌘G / ⇧⌘G Find next/previous ⌘K R Reveal active file in Explorer ⌥Enter Select all occurrences of Find match ⌘K O Show active file in new window/instance General ⌘D Add selection to next Find match Move last selection to next Find match Display ⌘K ⌘D ⇧⌘P, F1 Show Command Palette ⌘P Quick Open, Go to File… Rich languages editing ⌃⌘F Toggle full screen ⇧⌘N New window/instance ⌥⌘0 Toggle editor layout (horizontal/vertical) ⌘W Close window/instance ⌃Space Trigger suggestion ⌘= / ⇧⌘- Zoom in/out ⌘, User Settings ⇧⌘Space Trigger parameter hints ⌘B Toggle Sidebar visibility ⌘K ⌘S Keyboard Shortcuts ⇧⌥F Format document ⇧⌘E Show Explorer / Toggle focus ⌘K ⌘F Format selection ⇧⌘F Show Search Go to Definition Basic editing F12 ⌃⇧G Show Source Control ⌥F12 Peek Definition ⇧⌘D Show Debug ⌘X Cut line (empty selection) ⌘K F12 Open Definition to the side ⇧⌘X Show Extensions ⌘C Copy line (empty selection) ⌘. Quick Fix ⇧⌘H Replace in files ⌥↓ / ⌥↑ Move line down/up ⇧F12 Show References ⇧⌘J Toggle Search details ⇧⌥↓ / ⇧⌥↑ Copy line down/up F2 Rename Symbol ⇧⌘U Show Output panel ⇧⌘K Delete line ⌘K ⌘X Trim trailing whitespace ⇧⌘V Open Markdown preview ⌘Enter / ⇧⌘Enter Insert line below/above ⌘K M Change file language ⌘K V Open Markdown preview to the side ⇧⌘\ Jump to matching bracket ⌘K Z Zen Mode (Esc Esc to exit) ⌘] / ⌘[ Indent/outdent line Navigation Home / End Go to beginning/end of line ⌘T Show all Symbols Debug ⌘↑ / ⌘↓ Go to beginning/end of file ⌃PgUp / ⌃PgDn Scroll line up/down ⌃G Go to Line... F9 Toggle breakpoint ⌘PgUp /⌘PgDn Scroll page up/down ⌘P Go to File... F5 Start/Continue ⌥⌘[ / ⌥⌘] Fold/unfold region ⇧⌘O Go to Symbol... F11 / ⇧F11 Step into/ out ⌘K ⌘[ / ⌘K ⌘] Fold/unfold all subregions ⇧⌘M Show Problems panel F10 Step over ⌘K ⌘0 / ⌘K ⌘J Fold/unfold all regions F8 / ⇧F8 Go to next/previous error or warning ⇧F5 Stop ⌘K ⌘C Add line comment ⌃⇧Tab Navigate editor group history ⌘K ⌘I Show hover ⌘K ⌘U Remove line comment ⌃- / ⌃⇧- Go back/forward Toggle Tab moves focus Integrated terminal ⌘/ Toggle line comment ⌃⇧M ⇧⌥A Toggle block comment ⌥Z Toggle word wrap Editor management ⌃` Show integrated terminal ⌃⇧` Create new terminal ⌘W Close editor ⌘C Copy selection Multi-cursor and selection ⌘K F Close folder ⌘↑ / ↓ Scroll up/down ⌥ + click Insert cursor ⌘\ Split editor PgUp / PgDn Scroll page up/down ⌥⌘↑ Insert cursor above ⌘1 / ⌘2 / ⌘3 Focus into 1st, 2nd, 3rd editor group ⌘Home / End Scroll to top/bottom ⌥⌘↓ Insert cursor below ⌘K ⌘← / ⌘K ⌘→ Focus into previous/next editor group ⌘U Undo last cursor operation ⌘K ⇧⌘← / ⌘K ⇧⌘→ Move editor left/right ⇧⌥I Insert cursor at end of each line selected ⌘K ← / ⌘K → Move active editor group ⌘L Select current line ⇧⌘L Select all occurrences of current selection File management ⌘F2 Select all occurrences of current word ⌘N New File ⌃⇧⌘→ / ← Expand / shrink selection ⌘O Open File... ⇧⌥ + drag mouse Column (box) selection ⌘S Save ⇧⌥⌘↑ / ↓ Column (box) selection up/down ⇧⌘S Save As... ⇧⌥⌘← / → Column (box) selection left/right ⌥⌘S Save All Other operating systems’ keyboard shortcuts and additional ⇧⌥⌘PgUp Column (box) selection page up ⌘W Close unassigned shortcuts available at aka.ms/vscodekeybindings ⇧⌥⌘PgDn Column (box) selection page down ⌘K ⌘W Close All