This article will take you through the most useful visual studio code shortcut keys to boost your productivity.
Why VS Code is the best editor?
- Multiple language support
- Nifty shortcuts
- Ever-growing library of 24000+ extensions
- A plethora of themes to customize your workspace to your heart’s content.
Why do we need shortcuts?
It is not only VS Code that depends on the keyword shortcuts, but most of the systems (Windows..), programs (Adobe programs..), and even games (PUBG..), because it has many benefits, the most important of which is facilitate work, speed, time savings and minimize the use of the mouse in addition to that you will look professional by using it.keyboard buttons label
/ : Slash; Alt : Alternate; Ctrl : Control;Basic keyboard shortcuts
Ctrl + A : Select all document contentCtrl + L : Select current line
Ctrl + C : Copy
Ctrl + C : Copy line (Without selecting)
Ctrl + X : Cut line (Without selecting)
Ctrl + V : Paste
Ctrl + Z : Undo (Return to the previous plan)
Ctrl + U : Undo cursor position
Ctrl + Y : Redo (Return to the next step)
Ctrl + S : Save the document
Tab : Code formatting (Organizing the beginning of the lines)
Ctrl + F : Search and find fast within the page
Ctrl + H : Replace
Ctrl + / : Add or change selecting text to a comment
Ctrl + G : Navigate to a specific line
Ctrl + B : Toggle the sidebar
Shift + Direction (Up/Down/Left/Right)
Ctrl + / : Add or change selecting text to a comment
Ctrl + G : Navigate to a specific line
Ctrl + B : Toggle the sidebar
Advanced keyboard shortcuts
Select text word by word:Shift + Direction (Up/Down/Left/Right)
Automatic selecting the same item on the entire page:
Select the item you will change or delete + Ctrl + D
Frequent manual selecting of different or same elements or add multiple cursors:
(You can insert additional cursor at any point in the file.)
While selecting the elements to be deleted or changing, keep clicking on + Alt
Manual adding multiple cursors above or below:
Ctrl + Alt + Shift + Up/Down
Copying lines and blocks:
Stand on the line you want to copy or select a whole block + Shift + Alt + Up/Down
Moving Lines and blocks:
Stand on the line you want to move or select a whole block + Alt + Up/Down
Select current line:
Stand on the line you want to select + Ctrl + L
Delete current line:
Stand on the line you want to delete + Ctrl + Shift + K
Select all results of a find operation (Ctrl + F):
Alt + Enter
Format Document:
Shift + Alt + F
How to enable auto save in VS Code?
Ctrl + , : Open settings
Set "files.autoSave": "afterDelay"
Alternatively, you can also enable Auto Save by navigating to File > Auto Save.
Customize your keyboard shortcuts
Go to the menu under File > Preferences > Keyboard Shortcuts.
If you know useful shortcuts or features that are not mentioned here, tell us in the comments. Thank you.
Tip: These shortcuts are often shared across multiple applications, programs, and systems, making them easier to remember.
If you encounter any problem, do not hesitate to contact us
Copyright: @hani2up