Mastering Essential Keyboard Shortcuts For Code Editors - VS Code, PyCharm, Sublime Text, and Atom
Mastering Essential Keyboard Shortcuts For Code Editors - VS Code, PyCharm, Sublime Text, and Atom
Discover the most useful shortcuts for Visual Studio Code, PyCharm, Sublime Text, and Atom,
with brief explanations to enhance your coding efficiency and productivity.
PyCharm
1. Ctrl + Shift + A – Search for Actions: Search for any action or command.
2. Ctrl + Shift + F – Find in Path: Search across all project files.
3. Ctrl + Y – Delete Line: Remove the current line.
4. Ctrl + D – Duplicate Line: Copy the current line below.
5. Alt + Enter – Quick Fix: Show available fixes for errors or warnings.
6. Ctrl + / – Toggle Comment: Comment or uncomment the current line.
7. Ctrl + Alt + L – Reformat Code: Automatically reformat the code according to style
guidelines.
8. Ctrl + Shift + F10 – Run File: Run the current Python script.
9. Ctrl + B – Go to Definition: Jump to a function or variable definition.
10. Ctrl + Shift + U – Toggle Case: Convert the selected text between upper and lower
case.
11. Ctrl + E – Recent Files: Quickly access recently opened files.
12. Shift + F6 – Rename Symbol: Rename a variable, function, or class across the project.
13. Ctrl + F12 – File Structure: View and navigate through the structure of the file.
14. Ctrl + Shift + V – Paste from History: Paste from clipboard history.
15. Ctrl + Shift + N – Search for File: Open a file by name.
16. Alt + F1 – Select in Project View: Locate the current file in the project structure.
17. Ctrl + Shift + Up/Down – Move Line Up/Down: Move the current line up or down.
18. Ctrl + Alt + O – Optimize Imports: Automatically organize and optimize import
statements.
19. Ctrl + Shift + T – Create Unit Test: Create a new unit test for the selected function or
class.
20. Ctrl + F9 – Build Project: Compile the entire project.
21. Ctrl + Shift + B – Rebuild Project: Rebuild the entire project from scratch.
22. Ctrl + Shift + Q – Quit PyCharm: Close the PyCharm editor.
23. Ctrl + Tab – Switch Tabs: Switch between open files.
24. Alt + Shift + F7 – Find Usages: Find all references to a variable or function.
25. Alt + 1 – Open Project View: Show the project tree.
26. Ctrl + Shift + Space – Smart Completion: Offer more relevant autocomplete
suggestions.
27. Ctrl + Shift + G – Find in Git Log: Search through the Git log for specific changes.
28. Ctrl + F8 – Toggle Breakpoint: Add or remove a breakpoint for debugging.
29. Shift + Ctrl + F8 – View Breakpoints: Open the breakpoints panel.
30. Alt + F7 – Find Usages: Find all instances of a variable, function, or class.
31. Ctrl + Shift + T – Go to Test: Quickly jump to a test class or function.
32. Alt + Shift + E – Run Python Code in Console: Execute the selected code in the Python
console.
33. Alt + Left/Right – Switch between Editor Tabs: Navigate between open tabs.
34. Ctrl + Shift + R – Run Context Configuration: Run or debug the code with the current
context configuration.
35. Ctrl + N – Navigate to Class: Quickly open a class by name.
36. Ctrl + Shift + D – Debug Last Launched Configuration: Run the last debug
configuration.
37. Ctrl + U – Go to Super Method: Navigate to the super method of the current function.
38. Ctrl + Shift + V – Paste from History: View and paste previous clipboard contents.
39. Ctrl + Q – Quick Documentation Lookup: Show documentation for the symbol at the
caret.
40. Ctrl + Alt + Shift + T – Refactor This: Open the refactor menu for the current selection.
41. Alt + Insert – Generate Code: Auto-generate code like constructors, getters, and
setters.
42. Ctrl + Alt + Shift + K – Commit Changes: Open the commit dialog for version control.
43. Ctrl + K – Commit Changes: Commit your current changes to version control.
44. Ctrl + T – Update Project: Pull the latest changes from version control.
45. Ctrl + Alt + J – Surround with Template: Surround the selected code with a template,
like try-except.
46. Ctrl + Alt + V – Introduce Variable: Create a new variable from the selected expression.
47. Alt + Shift + C – View Recent Changes: See the recent changes made to the current
file.
48. Ctrl + Shift + Backspace – Navigate to Last Edit Location: Return to where you last
edited.
49. Ctrl + F11 – Bookmark Line: Add or remove a bookmark on the current line.
50. F11 – Toggle Bookmark: Add or remove a simple bookmark on the current line.
Sublime Text
1. Ctrl + P – Goto Anything: Quickly open files or jump to lines.
2. Ctrl + Shift + P – Command Palette: Access various Sublime Text commands.
3. Ctrl + / – Toggle Comment: Add or remove comments on the current line.
4. Ctrl + D – Select Word: Select the current word.
5. Ctrl + L – Select Line: Select the entire line of text.
6. Ctrl + Shift + L – Split Selection into Lines: Split multi-line selection into individual lines.
7. Ctrl + F – Find: Search for text in the current file.
8. Ctrl + H – Find and Replace: Search and replace text.
9. Ctrl + Shift + F – Find in Files: Search across multiple files.
10. Alt + Shift + 2 – Split View: Split the editor into two vertical panes.
11. Alt + 1 – Single Column View: Switch to a single-column view.
12. Ctrl + Shift + M – Select Content Within Brackets: Select the content inside
parentheses, brackets, or braces.
13. Ctrl + Enter – Insert Line Below: Add a new line below the current line.
14. Ctrl + Shift + Enter – Insert Line Above: Add a new line above the current line.
15. Ctrl + K, Ctrl + U – Convert to Uppercase: Change the selected text to uppercase.
16. Ctrl + K, Ctrl + L – Convert to Lowercase: Change the selected text to lowercase.
17. Ctrl + Shift + K – Delete Line: Remove the current line completely.
18. Ctrl + Shift + D – Duplicate Line: Copy the current line below.
19. Ctrl + J – Join Lines: Combine two lines into one.
20. Ctrl + Shift + / – Block Comment: Add or remove block comments.
21. Ctrl + Alt + Up/Down Arrow – Add Multiple Cursors: Add additional cursors for multi-
line editing.
22. Ctrl + K, Ctrl + B – Toggle Sidebar: Show or hide the sidebar.
23. Ctrl + G – Goto Line: Jump to a specific line number.
24. Ctrl + K, Ctrl + X – Trim Trailing Whitespace: Remove extra spaces at the end of lines.
25. Ctrl + Shift + U – Uppercase Toggle: Toggle the case of the selected text.
26. Ctrl + F6 – Next Syntax Definition: Switch to the next language syntax.
27. Ctrl + Alt + P – Project Quick Switcher: Quickly switch between projects.
28. Ctrl + K, Ctrl + 0 – Fold All Code Blocks: Collapse all code blocks.
29. Ctrl + K, Ctrl + J – Unfold All Code Blocks: Expand all code blocks.
30. Alt + Left/Right Arrow – Navigate Open Files: Switch between open files.
31. Ctrl + Shift + T – Reopen Closed Tab: Reopen the last closed file.
32. Ctrl + Tab – Cycle Through Open Files: Switch between open files.
33. Ctrl + Shift + N – New Window: Open a new Sublime Text window.
34. Ctrl + W – Close Tab: Close the current tab.
35. Ctrl + Shift + W – Close All Tabs: Close all open files.
36. Ctrl + K, Ctrl + C – Add Line Comment: Add a comment on the current line.
37. Ctrl + U – Soft Undo: Undo the last action.
38. Ctrl + Shift + U – Redo Soft Undo: Redo the last undone action.
39. Ctrl + K, Ctrl + W – Close All Other Tabs: Close all tabs except the current one.
40. Ctrl + Backspace – Delete Word Backward: Delete the word to the left.
41. Ctrl + Delete – Delete Word Forward: Delete the word to the right.
42. Ctrl + Shift + [ – Fold Code Block: Collapse the current block of code.
43. Ctrl + Shift + ] – Unfold Code Block: Expand the current block of code.
44. Ctrl + Shift + L – Select All Occurrences of Word*: Select every occurrence of the
current word.
45. Ctrl + Alt + 1-9 – Navigate Between Open Projects: Quickly switch between open
project tabs.
46. Ctrl + Shift + H – Find and Replace in Selection*: Replace all occurrences within a
selected area.
47. Ctrl + R – Go to Symbol*: Jump to any symbol (e.g., function or variable) in the current
file.
48. Ctrl + Shift + Space – Show Autocomplete Suggestions*: Manually trigger
autocomplete suggestions.
49. Ctrl + Shift + P – Show Build Results*: Show the results of the last build.
50. F12 – Go to Definition*: Jump to the definition of the symbol under the cursor.
Atom
1. Ctrl + P – Open File: Quickly open files by name.
2. Ctrl + Shift + P – Command Palette: Access Atom’s command palette for shortcuts.
3. Ctrl + / – Toggle Comment: Comment or uncomment selected lines.
4. Ctrl + F – Find in File: Search for text in the current file.
5. Ctrl + Shift + F – Find in Project*: Search for text across multiple files in the project.
6. Ctrl + D – Select Word*: Select the next occurrence of the word.
7. Ctrl + Shift + L – Select All Occurrences*: Select all occurrences of the selected word.
8. Ctrl + L – Select Line*: Select the entire line of text.
9. Ctrl + Enter – Insert Line Below*: Add a new line directly below the current one.
10. Ctrl + Shift + Enter – Insert Line Above*: Add a new line directly above the current one.
11. Alt + Up/Down Arrow – Move Line*: Move the selected line or block of text up or down.
12. Ctrl + K, Ctrl + B – Toggle Tree View*: Show or hide the file tree sidebar.
13. Ctrl + G – Goto Line*: Jump to a specific line number in the file.
14. Ctrl + Shift + D – Duplicate Line*: Duplicate the selected line or block of text.
15. Ctrl + K, Ctrl + W – Close All Tabs*: Close all open files except the current one.
16. Ctrl + Shift + K – Delete Line*: Remove the current line.
17. Ctrl + Shift + M – Preview Markdown*: View a live preview of Markdown files.
18. Ctrl + K, Ctrl + 0 – Fold All Code Blocks*: Collapse all code blocks in the editor.
19. Ctrl + K, Ctrl + J – Unfold All Code Blocks*: Expand all collapsed code blocks.
20. Ctrl + Alt + Arrow Keys – Multi-Select Cursors*: Add multiple cursors for simultaneous
editing.
21. Ctrl + Alt + N – Run Script*: Run the current script (requires a package).
22. Ctrl + Shift + U – Convert to Uppercase*: Change the selected text to uppercase.
23. Ctrl + Shift + L – Toggle Case*: Toggle the case of the selected text.
24. Ctrl + K, Ctrl + U – Convert to Lowercase*: Convert the selected text to lowercase.
25. Ctrl + W – Close Current Tab*: Close the active file tab.
26. Ctrl + Shift + W – Close All Windows*: Close all open Atom windows.
27. Ctrl + Tab – Switch Between Tabs*: Cycle through open file tabs.
28. Ctrl + Shift + H – Replace*: Replace text in the current file or selection.
29. Ctrl + R – Goto Symbol*: Navigate to a symbol (e.g., function or class) in the file.
30. Ctrl + Shift + P – Open Palette*: Search for any command using the palette.
31. Ctrl + Shift + E – Open Git Tab*: Open the Git tab to manage version control.
32. Alt + Shift + S – Show Git Status*: View the Git status of the project.
33. Ctrl + Shift + C – Copy Path*: Copy the full path of the current file.
34. Ctrl + Shift + N – New Window*: Open a new Atom window.
35. Ctrl + K, Ctrl + R – Refactor Code*: Access refactoring tools.
36. Ctrl + U – Soft Undo*: Undo the last cursor movement or action.
37. Ctrl + Shift + U – Soft Redo*: Redo the last undone cursor movement or action.
38. Ctrl + Alt + K – Remove Trailing Spaces*: Remove unnecessary trailing spaces from
lines.
39. Ctrl + Shift + T – Reopen Last Closed Tab*: Restore the last closed file.
40. Ctrl + Shift + G – Search Git Commits*: Search through the Git commit history.
41. Ctrl + Shift + N – New File*: Create a new file in the project.
42. Ctrl + F2 – Toggle Bookmark*: Add or remove a bookmark on the current line.
43. F2 – Next Bookmark*: Navigate to the next bookmarked line.
44. Shift + F2 – Previous Bookmark*: Navigate to the previous bookmarked line.
45. Ctrl + Shift + F2 – Clear Bookmarks*: Remove all bookmarks from the current file.
46. Ctrl + Shift + O – Open Project*: Open an existing project or folder.
47. Alt + Click – Multiple Cursors*: Insert multiple cursors for editing multiple lines
simultaneously.
48. Ctrl + J – Join Lines*: Merge the current line with the next line.
49. Ctrl + F9 – Run Build Task*: Run a build task configured for the project.
50. Ctrl + Shift + I – Toggle Developer Tools*: Open the Chrome Developer Tools for
debugging.