Keyboard Shortcuts Reference
This comprehensive reference documents all keyboard shortcuts available in ThinkCode, organized by functionality. Mastering these shortcuts will significantly improve your productivity and efficiency when working with the platform.
Note: On macOS, use
Cmd (⌘)
instead ofCtrl
for most keyboard shortcuts. Platform-specific differences are noted where applicable.
Navigation Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
Open file | Quick access to files in your workspace | Ctrl+P | ⌘+P |
Command palette | Access all available commands | Ctrl+Shift+P | ⌘+Shift+P |
Go to symbol | Navigate to symbols within a file | Ctrl+Shift+O | ⌘+Shift+O |
Go to line | Jump to a specific line number | Ctrl+G | ⌘+G |
Go to definition | Navigate to symbol definition | F12 | F12 |
Go to references | Find all references to a symbol | Shift+F12 | Shift+F12 |
Go back | Return to previous location | Alt+Left | ⌘+[ |
Go forward | Move to next location | Alt+Right | ⌘+] |
Switch between editor groups | Move focus between split editors | Ctrl+1/2/3 | ⌘+1/2/3 |
Toggle sidebar visibility | Show/hide the sidebar | Ctrl+B | ⌘+B |
Toggle terminal | Show/hide the integrated terminal | `Ctrl+`` | `⌘+`` |
Focus editor | Return focus to the main editor | Escape | Escape |
Editing Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
Copy line | Copy the current line | Ctrl+C (without selection) | ⌘+C (without selection) |
Cut line | Cut the current line | Ctrl+X (without selection) | ⌘+X (without selection) |
Move line up/down | Reposition the current line | Alt+Up/Down | Option+Up/Down |
Copy line up/down | Duplicate the current line | Shift+Alt+Up/Down | Shift+Option+Up/Down |
Delete line | Remove the current line | Ctrl+Shift+K | ⌘+Shift+K |
Insert line below | Add a new line below current line | Ctrl+Enter | ⌘+Enter |
Insert line above | Add a new line above current line | Ctrl+Shift+Enter | ⌘+Shift+Enter |
Jump to matching bracket | Navigate between opening/closing brackets | Ctrl+Shift+\ | ⌘+Shift+\ |
Indent/outdent line | Adjust line indentation | Tab/Shift+Tab | Tab/Shift+Tab |
Toggle line comment | Comment/uncomment the current line | Ctrl+/ | ⌘+/ |
Toggle block comment | Comment/uncomment the selected block | Shift+Alt+A | Shift+Option+A |
Format document | Apply code formatting to the entire document | Shift+Alt+F | Shift+Option+F |
Format selection | Format only the selected code | Ctrl+K Ctrl+F | ⌘+K ⌘+F |
Selection Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
Select all | Select entire document | Ctrl+A | ⌘+A |
Expand selection | Incrementally select larger code blocks | Shift+Alt+Right | Shift+Option+Right |
Shrink selection | Reduce selection size | Shift+Alt+Left | Shift+Option+Left |
Column (box) selection | Select a rectangular region of text | Shift+Alt+drag | Shift+Option+drag |
Add cursor above | Create a new cursor on the line above | Ctrl+Alt+Up | ⌘+Option+Up |
Add cursor below | Create a new cursor on the line below | Ctrl+Alt+Down | ⌘+Option+Down |
Add cursors to line ends | Add cursors to the end of all selected lines | Shift+Alt+I | Shift+Option+I |
Select all occurrences | Select all instances of current selection | Ctrl+Shift+L | ⌘+Shift+L |
Select next occurrence | Add the next matching text to selection | Ctrl+D | ⌘+D |
Skip current occurrence | Skip this match and move to next | Ctrl+K Ctrl+D | ⌘+K ⌘+D |
AI-Assisted Coding Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
Trigger AI completion | Request code completion from AI | Alt+\ | Option+\ |
Generate code block | Create a new implementation from comments | Ctrl+Alt+G | ⌘+Option+G |
Explain code | Request explanation for selected code | Ctrl+Alt+E | ⌘+Option+E |
Optimize code | Have AI suggest code optimizations | Ctrl+Alt+O | ⌘+Option+O |
Generate documentation | Create documentation for selected code | Ctrl+Alt+D | ⌘+Option+D |
Fix issues | Request fixes for code problems | Ctrl+Alt+F | ⌘+Option+F |
AI chat | Open the AI chat panel | Ctrl+Shift+A | ⌘+Shift+A |
Search Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
Find in file | Search within the current file | Ctrl+F | ⌘+F |
Replace in file | Search and replace within the current file | Ctrl+H | ⌘+H |
Find next/previous | Navigate between search results | F3/Shift+F3 | ⌘+G/⌘+Shift+G |
Find in files | Search across all files in the workspace | Ctrl+Shift+F | ⌘+Shift+F |
Replace in files | Search and replace across all files | Ctrl+Shift+H | ⌘+Shift+H |
View Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
Zoom in/out | Adjust editor font size | Ctrl+=/Ctrl+- | ⌘+=/⌘+- |
Reset zoom | Restore default font size | Ctrl+0 | ⌘+0 |
Toggle full screen | Enter or exit full screen mode | F11 | ⌘+Control+F |
Toggle zen mode | Distraction-free coding environment | Ctrl+K Z | ⌘+K Z |
Split editor | Create a new editor group | Ctrl+\ | ⌘+\ |
Toggle word wrap | Enable/disable line wrapping | Alt+Z | Option+Z |
Toggle minimap | Show/hide code minimap | Ctrl+Shift+M | ⌘+Shift+M |
File Management Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
New file | Create a new file | Ctrl+N | ⌘+N |
Open file | Open an existing file | Ctrl+O | ⌘+O |
Save file | Save the current file | Ctrl+S | ⌘+S |
Save file as | Save with a new filename | Ctrl+Shift+S | ⌘+Shift+S |
Save all files | Save all open files | Ctrl+K S | ⌘+K S |
Close file | Close the current file | Ctrl+W | ⌘+W |
Close all files | Close all open files | Ctrl+K Ctrl+W | ⌘+K ⌘+W |
Reopen closed file | Restore the last closed file | Ctrl+Shift+T | ⌘+Shift+T |
Debug Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
Start/continue debugging | Begin or resume debugging | F5 | F5 |
Stop debugging | End the current debug session | Shift+F5 | Shift+F5 |
Restart debugging | Restart the current debug session | Ctrl+Shift+F5 | ⌘+Shift+F5 |
Step over | Execute the current line and move to next | F10 | F10 |
Step into | Enter function at current execution point | F11 | F11 |
Step out | Exit the current function | Shift+F11 | Shift+F11 |
Toggle breakpoint | Add/remove breakpoint at current line | F9 | F9 |
Disable breakpoint | Temporarily disable a breakpoint | Ctrl+F9 | ⌘+F9 |
Terminal Shortcuts
Shortcut | Description | Windows/Linux | macOS |
---|---|---|---|
New terminal | Create a new terminal instance | `Ctrl+Shift+`` | `⌘+Shift+`` |
Kill terminal | Close the current terminal | Ctrl+K Ctrl+K | ⌘+K ⌘+K |
Clear terminal | Clear the terminal output | Ctrl+K | ⌘+K |
Navigate terminal history | Scroll through command history | Up/Down | Up/Down |
Scroll terminal | View previous terminal output | Shift+PageUp/PageDown | Shift+PageUp/PageDown |
Split terminal | Create a split terminal view | Ctrl+Shift+5 | ⌘+Shift+5 |
Focus next terminal | Switch between terminal instances | Ctrl+PageDown | ⌘+PageDown |
Focus previous terminal | Switch to previous terminal instance | Ctrl+PageUp | ⌘+PageUp |
Customizing Shortcuts
You can customize any keyboard shortcut in ThinkCode:
- Open the Command Palette (
Ctrl+Shift+P
/⌘+Shift+P
) - Type "Preferences: Open Keyboard Shortcuts"
- Search for the command you want to modify
- Click the pencil icon and press your desired key combination
- Press Enter to save the new shortcut
Platform-Specific Notes
macOS
- Use
⌘
(Command) instead ofCtrl
for most shortcuts - The Option key (
⌥
) is used where Alt is specified for Windows/Linux - Function keys may require pressing
Fn
or configuring system preferences
Linux
- Some shortcuts may conflict with window manager or desktop environment shortcuts
- You may need to modify system shortcuts to avoid conflicts with ThinkCode
Windows
- On some keyboards, you might need to use the
Fn
key to access function keys - Windows-specific shortcuts are available for certain system integrations
Extension Shortcuts
Many ThinkCode extensions add their own keyboard shortcuts. To view all available shortcuts, including those from extensions:
- Open the Command Palette (
Ctrl+Shift+P
/⌘+Shift+P
) - Type "Preferences: Open Keyboard Shortcuts"
- Use the search box to find specific commands or shortcuts