![]() The editor has a navigation bar above its contents called Breadcrumbs. If you are jumping around between different lines of the same file, these shortcuts allow you to navigate between those locations easily. To open one of these files, use Tab again to pick the file you want to navigate to, then release Ctrl to open it.Īlternatively, you can use ⌃- (Windows Alt+Left, Linux Ctrl+Alt+-) and ⌃⇧- (Windows Alt+Right, Linux Ctrl+Shift+-) to navigate between files and edit locations. Hold Ctrl and press Tab to view a list of all files open in an editor group. VS Code provides two powerful commands to navigate in and across files with easy-to-use key bindings. However, when you are working on a task, you will find yourself quickly jumping between the same set of files. The Explorer is great for navigating between files when you are exploring a project. Tip: You can open any file by its name when you type ⌘P (Windows, Linux Ctrl+P) ( Quick Open). In this topic, we'll first describe VS Code's language intelligence features (suggestions, parameter hints, smart code navigation) and then show the power of the core text editor. ![]() Visual Studio Code has a high productivity code editor which, when combined with programming language services, gives you the power of an IDE and the speed of a text editor. Configure IntelliSense for cross-compiling.Focus first/second/third editor window: ⌘ + 1 / ⌘ + 2 / ⌘ + 3 or Ctrl + 1 / Ctrl + 2 / Ctrl + 3Īlternatively, you can also check the official keyboard shortcuts of VS Code for macOS and for Windows. ![]() Show (focus) integrated terminal: ⌃ + ` or Ctrl + `.Show Extensions: ⇧ + ⌘ + X or Ctrl + Shift + X.Show Debug: ⇧ + ⌘ + D or Ctrl + Shift + D: Show Debug.Show Source Control: ⇧ + ⌃ + G or Ctrl + Shift + G.Show Search: ⇧ + ⌘ + F or Ctrl + Shift + F.Show Explorer: ⇧ + ⌘ + E or Ctrl + Shift + E.Select all occurrences of current word: ⇧ + ⌘ + L or Ctrl + Shift + L.De-select previous match: ⌘ + U or Ctrl + U.Insert cursor above: ⌥ + ⌘ + ↑/↓ or Ctrl + Alt + ↑.Insert cursor: ⌥ + Click or Alt + Click.Find next/previous: ⌘ + G / ⇧ + ⌘ + G or Ctrl + F3 / Shift + Ctrl +F3.Open previously closed: ⇧ + ⌘ + T or Ctrl + Shift + T.Close all files: ⌘ + K ⌘ + W or Ctrl + K Ctrl + W.Go to symbol in the workspace: ⌘ + T or Ctrl + T.Go to symbol: ⇧ + ⌘ + O or Ctrl + Shift + O.Open next opened tab: ⌃ + Tab or Ctrl + Tab.Go to file / Go to previous file: ⌘ + P / ⌘ + P ⌘ + P or Ctrl + P / Ctrl + P Ctrl + P.Go to beginning/end of file: ⌘ + ↑/↓ or Ctrl + Home/End.Go to beginning/end of line: ⌘ + →/← or Home/End.Go to the next/previous word: ⌥ + → or Ctrl + →/←.Expand/Shrink selection: ⇧ + ⌃ + →/← or Shift + Alt + →/←.Select to the beginning/end of file: ⇧ + ⌘ + ↑/↓ or Ctrl + Shift + Home/End.Select line up/down: ⇧ + ↑/↓ or Ctrl + Shift + ↑/↓.: Select current line / current and next line / etc : ⌘ + L / ⌘ + L ⌘ + L or Ctrl + L / Ctrl + L Ctrl + L.Select the next/previous word: ⇧ + ⌥ + →/← or Ctrl + Shift + →/←.Select the next/previous letter: ⇧ + →/← or Shift + →/←.Toggle line commment: ⌘ + / or Ctrl + /.Copy line up/down: ⇧ + ⌥ + ↑/↓ or Shift + Alt + ↑/↓.Move line up/down: ⌥ + ↑/↓ or Alt + ↑/↓.Delete line: ⇧ + ⌘ + K or Ctrl + Shift + K.Remove one word: ⌥ + ⌫ or Ctrl + Backspace.Open keyboard shortcuts: ⌘ + K ⌘ + S or Ctrl + K Ctrl + S.Open the command palette: ⇧ + ⌘ + P or Ctrl + Shift + P.You'll find below all of the different shortcuts I use: ![]() That's when I decided to learn all the essential shortcuts of my favorite code editor: VS Code. Seeing them slamming their keyboard and manipulating their code like pros made me think it was just ridiculous. Did you ever wanted to write code like a pro? To move chunks of code back and forth easily? Access whatever you want in the blink of an eye? Well, I did.Īll the coding courses I took were recorded by instructors who seemed to know their code editor by heart.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |