Logo

dev-resources.site

for different kinds of informations.

VSCode productive shortcut keys

Published at
3/15/2024
Categories
vscode
shortcut
productivity
keyboard
Author
patfinder
Author
9 person written this
patfinder
open
VSCode productive shortcut keys

ChatGPT - Here are 50 of the most commonly used shortcut keys in Visual Studio Code:

  1. Ctrl + P (Cmd + P on macOS): Quick Open - Open file by name.

  2. Ctrl + Shift + P (Cmd + Shift + P on macOS): Show Command Palette - Access all commands and features.

  3. Ctrl + `(Cmd + ` on macOS): Toggle Terminal - Open or close the integrated terminal.

  4. Ctrl + B (Cmd + B on macOS): Toggle Sidebar - Show or hide the sidebar.

  5. Ctrl + Shift + E (Cmd + Shift + E on macOS): Focus on Explorer - Focus on the file explorer sidebar.

  6. Ctrl + Shift + F (Cmd + Shift + F on macOS): Search in Files - Search for a string or regular expression in all files.

  7. Ctrl + Shift + G (Cmd + Shift + G on macOS): Focus on Source Control - Focus on the source control sidebar.

  8. Ctrl + Shift + D (Cmd + Shift + D on macOS): Focus on Debug - Focus on the debugging sidebar.

  9. Ctrl + K, S (Cmd + K, S on macOS): Save All - Save all open files.

  10. Ctrl + W (Cmd + W on macOS): Close Editor - Close the active editor tab.

  11. Ctrl + Tab (Cmd + Tab on macOS): Switch between Editor Tabs - Cycle through open editor tabs.

  12. Ctrl + Shift + Tab (Cmd + Shift + Tab on macOS): Move Backward through Editor Tabs.

  13. Ctrl + \ (Cmd + \ on macOS): Split Editor - Split the active editor into two panes.

  14. Ctrl + K, Ctrl + \ (Cmd + K, Cmd + \ on macOS): Split Editor Down - Split the active editor into two panes vertically.

  15. Ctrl + K, Ctrl + Shift + \ (Cmd + K, Cmd + Shift + \ on macOS): Split Editor Right - Split the active editor into two panes horizontally.

  16. Ctrl + Shift + O (Cmd + Shift + O on macOS): Go to Symbol - Navigate to a symbol in the current file.

  17. Ctrl + G (Cmd + G on macOS): Go to Line - Jump to a specific line in the current file.

  18. Ctrl + F (Cmd + F on macOS): Find - Search for a string in the current file.

  19. Ctrl + H (Cmd + H on macOS): Replace - Find and replace a string in the current file.

  20. Ctrl + Shift + F (Cmd + Option + F on macOS): Find in Files - Search for a string in all files within a directory.

  21. Ctrl + / (Cmd + / on macOS): Toggle Line Comment - Comment or uncomment a line or block of code.

  22. Ctrl + Enter (Cmd + Enter on macOS): Insert Line Below - Insert a new line below the current line.

  23. Ctrl + Shift + Enter (Cmd + Shift + Enter on macOS): Insert Line Above - Insert a new line above the current line.

  24. Ctrl + Shift + K (Cmd + Shift + K on macOS): Delete Line - Delete the current line.

  25. Alt + Γ’β€ β€˜ / Γ’β€ β€œ (Option + Γ’β€ β€˜ / Γ’β€ β€œ on macOS): Move Line Up / Down - Move the current line up or down.

  26. Alt + Shift + Γ’β€ β€œ (Option + Shift + Γ’β€ β€œ on macOS): Copy Line Down - Duplicate the current line below.

  27. Ctrl + D (Cmd + D on macOS): Add Selection to Next Find Match - Select the next occurrence of the current word.

  28. Ctrl + Shift + L (Cmd + Shift + L on macOS): Select All Occurrences of Find Match - Select all occurrences of the current word in the file.

  29. Alt + Shift + F (Option + Shift + F on macOS): Format Document - Format the current document according to the configured formatting rules.

  30. Ctrl + Space (Cmd + Space on macOS): Trigger Suggest - Trigger IntelliSense suggestions for code completion.

  31. Ctrl + Shift + Space (Cmd + Shift + Space on macOS): Trigger Parameter Hints - Display parameter hints for the current method or function call.

  32. Ctrl + . (Cmd + . on macOS): Quick Fix - Display quick fixes and suggestions for code issues.

  33. Alt + Shift + Γ’β€ β€˜ / Γ’β€ β€œ (Option + Shift + Γ’β€ β€˜ / Γ’β€ β€œ on macOS): Copy Line Up / Down - Copy the current line and paste it above or below.

  34. Shift + Alt + Γ’β€ β€˜ / Γ’β€ β€œ (Shift + Option + Γ’β€ β€˜ / Γ’β€ β€œ on macOS): Insert Cursor Above / Below - Insert an additional cursor above or below the current cursor position.

  35. Ctrl + Shift + Alt + Γ’β€ β€˜ / Γ’β€ β€œ (Cmd + Option + Shift + Γ’β€ β€˜ / Γ’β€ β€œ on macOS): Insert Cursor Above / Below with Box Selection - Insert an additional cursor above or below with box selection.

  36. Ctrl + Shift + M (Cmd + Shift + M on macOS): Toggle Error / Warning Messages - Show or hide the problems panel.

  37. Ctrl + J (Cmd + J on macOS): Toggle Panel - Show or hide the panel at the bottom of the window.

  38. Ctrl + Shift + U (Cmd + Shift + U on macOS): Toggle Output Panel - Show or hide the output panel.

  39. Ctrl + K, Ctrl + X (Cmd + K, Cmd + X on macOS): Trim Trailing Whitespace - Remove trailing whitespace from the current file.

  40. Ctrl + K, M (Cmd + K, M on macOS): Change Language Mode - Change the language mode for the current file.

  41. Ctrl + K, Ctrl + I (Cmd + K, Cmd + I on macOS): Show Hover - Display hover information for the current symbol.

  42. Ctrl + K, V (Cmd + K, V on macOS): Markdown Preview - Open a preview of the current Markdown file.

  43. Ctrl + Shift + V (Cmd + Shift + V on macOS): Markdown Preview to Side - Open a preview of the current Markdown file in a side-by-side view.

  44. Ctrl + K, R (Cmd + K, R on macOS): Reveal Active File in Explorer - Navigate to the active file in the file explorer sidebar.

  45. Ctrl + K, O (Cmd + K, O on macOS): Show Opened File - Display a list of all opened files.

  46. Ctrl + K, P (Cmd + K, P on macOS): Copy Path of Active File - Copy the path of the active file to the clipboard.

  47. Ctrl + K, Ctrl + C (Cmd + K, Cmd + C on macOS): Add Line Comment - Comment out the current line or selected block of code.

  48. Ctrl + K, Ctrl + U (Cmd + K, Cmd + U on macOS): Remove Line Comment - Uncomment the current line or selected block of code.

  49. Ctrl + Shift + K (Cmd + Shift + K on macOS): Delete Line - Delete the current line.

  50. Ctrl + Shift + [ (Cmd + Shift + [ on macOS): Fold (Collapse) Region - Fold the current code region.

These shortcuts can significantly improve your efficiency when working in Visual Studio Code by reducing the need to use the mouse and allowing you to perform common tasks more quickly.

shortcut Article's
30 articles in total
Favicon
How to Fetch URL Content, Set It into a Dictionary, and Extract Specific Keys in iOS Shortcuts
Favicon
How to Post Articles to Dev.to Using iOS Shortcuts
Favicon
Create a Shortcut to Post Markdown Files to GitHub
Favicon
How to Save and Open PDFs in Files App with Shortcuts: Specify Path and Filename for Better Access
Favicon
πŸš€ Meet IntelliText: The Power Tool for Text Automation You Didn’t Know You Needed
Favicon
Essential Shortcuts for Linux Terminal 2024 πŸ’₯
Favicon
iOS 18 - Using ChatGPT powered TapAI shortcut with Apple Notes, Reminders & Calendar for automation
Favicon
Setting App Time Limits on iOS Using Shortcuts
Favicon
Arc Shortcuts: Windows
Favicon
Visual code extension to copy multiple values
Favicon
Easy Guide to Becoming a Software Developer in 2024
Favicon
VSCode productive shortcut keys
Favicon
Sublime Text Shortcut Keys – Boost Productivity with Key Phrases
Favicon
Apple Notes Monostyle Text Keyboard Shortcut
Favicon
How Do I Permanently Remove a Shortcut Virus from My USB?
Favicon
Mastering Windows Shortcuts: Boosting Productivity and Efficiency
Favicon
Create a desktop entry for postman in ubuntu
Favicon
Windows Shortcut ::
Favicon
How to duplicate a browser tab
Favicon
5 Shortcuts to make tab navigation easier on your browser
Favicon
Custom Alias / Shortcut in macΒ Terminal
Favicon
Bash and exclamation marks !!!!
Favicon
Keyboard Shortcut: Emoji πŸ˜‰
Favicon
35 atalhos customizados VS Code para aumentar sua produtividade
Favicon
15+ Command Line Hot Keys You Didn't Know About
Favicon
Shortcut to shut down Mac
Favicon
Shortcut keys to shut down Mac (MacBook Pro, Mini ...)
Favicon
set up keyboard shortcut to open terminal on mac
Favicon
How to implement a search shortcut (OpenSearch) on any website
Favicon
10 Practical shortcuts to be faster !

Featured ones: