Documentation

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 of Ctrl for most keyboard shortcuts. Platform-specific differences are noted where applicable.

ShortcutDescriptionWindows/LinuxmacOS
Open fileQuick access to files in your workspaceCtrl+P⌘+P
Command paletteAccess all available commandsCtrl+Shift+P⌘+Shift+P
Go to symbolNavigate to symbols within a fileCtrl+Shift+O⌘+Shift+O
Go to lineJump to a specific line numberCtrl+G⌘+G
Go to definitionNavigate to symbol definitionF12F12
Go to referencesFind all references to a symbolShift+F12Shift+F12
Go backReturn to previous locationAlt+Left⌘+[
Go forwardMove to next locationAlt+Right⌘+]
Switch between editor groupsMove focus between split editorsCtrl+1/2/3⌘+1/2/3
Toggle sidebar visibilityShow/hide the sidebarCtrl+B⌘+B
Toggle terminalShow/hide the integrated terminal`Ctrl+```⌘+``
Focus editorReturn focus to the main editorEscapeEscape

Editing Shortcuts

ShortcutDescriptionWindows/LinuxmacOS
Copy lineCopy the current lineCtrl+C (without selection)⌘+C (without selection)
Cut lineCut the current lineCtrl+X (without selection)⌘+X (without selection)
Move line up/downReposition the current lineAlt+Up/DownOption+Up/Down
Copy line up/downDuplicate the current lineShift+Alt+Up/DownShift+Option+Up/Down
Delete lineRemove the current lineCtrl+Shift+K⌘+Shift+K
Insert line belowAdd a new line below current lineCtrl+Enter⌘+Enter
Insert line aboveAdd a new line above current lineCtrl+Shift+Enter⌘+Shift+Enter
Jump to matching bracketNavigate between opening/closing bracketsCtrl+Shift+\⌘+Shift+\
Indent/outdent lineAdjust line indentationTab/Shift+TabTab/Shift+Tab
Toggle line commentComment/uncomment the current lineCtrl+/⌘+/
Toggle block commentComment/uncomment the selected blockShift+Alt+AShift+Option+A
Format documentApply code formatting to the entire documentShift+Alt+FShift+Option+F
Format selectionFormat only the selected codeCtrl+K Ctrl+F⌘+K ⌘+F

Selection Shortcuts

ShortcutDescriptionWindows/LinuxmacOS
Select allSelect entire documentCtrl+A⌘+A
Expand selectionIncrementally select larger code blocksShift+Alt+RightShift+Option+Right
Shrink selectionReduce selection sizeShift+Alt+LeftShift+Option+Left
Column (box) selectionSelect a rectangular region of textShift+Alt+dragShift+Option+drag
Add cursor aboveCreate a new cursor on the line aboveCtrl+Alt+Up⌘+Option+Up
Add cursor belowCreate a new cursor on the line belowCtrl+Alt+Down⌘+Option+Down
Add cursors to line endsAdd cursors to the end of all selected linesShift+Alt+IShift+Option+I
Select all occurrencesSelect all instances of current selectionCtrl+Shift+L⌘+Shift+L
Select next occurrenceAdd the next matching text to selectionCtrl+D⌘+D
Skip current occurrenceSkip this match and move to nextCtrl+K Ctrl+D⌘+K ⌘+D

AI-Assisted Coding Shortcuts

ShortcutDescriptionWindows/LinuxmacOS
Trigger AI completionRequest code completion from AIAlt+\Option+\
Generate code blockCreate a new implementation from commentsCtrl+Alt+G⌘+Option+G
Explain codeRequest explanation for selected codeCtrl+Alt+E⌘+Option+E
Optimize codeHave AI suggest code optimizationsCtrl+Alt+O⌘+Option+O
Generate documentationCreate documentation for selected codeCtrl+Alt+D⌘+Option+D
Fix issuesRequest fixes for code problemsCtrl+Alt+F⌘+Option+F
AI chatOpen the AI chat panelCtrl+Shift+A⌘+Shift+A

Search Shortcuts

ShortcutDescriptionWindows/LinuxmacOS
Find in fileSearch within the current fileCtrl+F⌘+F
Replace in fileSearch and replace within the current fileCtrl+H⌘+H
Find next/previousNavigate between search resultsF3/Shift+F3⌘+G/⌘+Shift+G
Find in filesSearch across all files in the workspaceCtrl+Shift+F⌘+Shift+F
Replace in filesSearch and replace across all filesCtrl+Shift+H⌘+Shift+H

View Shortcuts

ShortcutDescriptionWindows/LinuxmacOS
Zoom in/outAdjust editor font sizeCtrl+=/Ctrl+-⌘+=/⌘+-
Reset zoomRestore default font sizeCtrl+0⌘+0
Toggle full screenEnter or exit full screen modeF11⌘+Control+F
Toggle zen modeDistraction-free coding environmentCtrl+K Z⌘+K Z
Split editorCreate a new editor groupCtrl+\⌘+\
Toggle word wrapEnable/disable line wrappingAlt+ZOption+Z
Toggle minimapShow/hide code minimapCtrl+Shift+M⌘+Shift+M

File Management Shortcuts

ShortcutDescriptionWindows/LinuxmacOS
New fileCreate a new fileCtrl+N⌘+N
Open fileOpen an existing fileCtrl+O⌘+O
Save fileSave the current fileCtrl+S⌘+S
Save file asSave with a new filenameCtrl+Shift+S⌘+Shift+S
Save all filesSave all open filesCtrl+K S⌘+K S
Close fileClose the current fileCtrl+W⌘+W
Close all filesClose all open filesCtrl+K Ctrl+W⌘+K ⌘+W
Reopen closed fileRestore the last closed fileCtrl+Shift+T⌘+Shift+T

Debug Shortcuts

ShortcutDescriptionWindows/LinuxmacOS
Start/continue debuggingBegin or resume debuggingF5F5
Stop debuggingEnd the current debug sessionShift+F5Shift+F5
Restart debuggingRestart the current debug sessionCtrl+Shift+F5⌘+Shift+F5
Step overExecute the current line and move to nextF10F10
Step intoEnter function at current execution pointF11F11
Step outExit the current functionShift+F11Shift+F11
Toggle breakpointAdd/remove breakpoint at current lineF9F9
Disable breakpointTemporarily disable a breakpointCtrl+F9⌘+F9

Terminal Shortcuts

ShortcutDescriptionWindows/LinuxmacOS
New terminalCreate a new terminal instance`Ctrl+Shift+```⌘+Shift+``
Kill terminalClose the current terminalCtrl+K Ctrl+K⌘+K ⌘+K
Clear terminalClear the terminal outputCtrl+K⌘+K
Navigate terminal historyScroll through command historyUp/DownUp/Down
Scroll terminalView previous terminal outputShift+PageUp/PageDownShift+PageUp/PageDown
Split terminalCreate a split terminal viewCtrl+Shift+5⌘+Shift+5
Focus next terminalSwitch between terminal instancesCtrl+PageDown⌘+PageDown
Focus previous terminalSwitch to previous terminal instanceCtrl+PageUp⌘+PageUp

Customizing Shortcuts

You can customize any keyboard shortcut in ThinkCode:

  1. Open the Command Palette (Ctrl+Shift+P / ⌘+Shift+P)
  2. Type "Preferences: Open Keyboard Shortcuts"
  3. Search for the command you want to modify
  4. Click the pencil icon and press your desired key combination
  5. Press Enter to save the new shortcut

Platform-Specific Notes

macOS

  • Use (Command) instead of Ctrl 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:

  1. Open the Command Palette (Ctrl+Shift+P / ⌘+Shift+P)
  2. Type "Preferences: Open Keyboard Shortcuts"
  3. Use the search box to find specific commands or shortcuts

On this page