Documentation

Essential Keyboard Shortcuts

Mastering keyboard shortcuts is one of the fastest ways to become productive with ThinkCode. This guide covers the most important shortcuts for general use, editing, and AI features.

Platform-Specific Keys

Throughout this guide, we use the following notation:

  • Windows/Linux: Ctrl, Alt, Shift
  • macOS: Cmd (⌘), Option (⌥), Shift (⇧)

When you see Ctrl/Cmd, use Ctrl on Windows/Linux and Cmd on macOS.

General Navigation

Efficiently navigate through ThinkCode's interface:

ActionWindows/LinuxmacOS
Command PaletteCtrl+Shift+PCmd+Shift+P
Quick Open FileCtrl+PCmd+P
Open SettingsCtrl+,Cmd+,
Toggle SidebarCtrl+BCmd+B
Toggle TerminalCtrl+` Cmd+`
Switch Editor TabCtrl+TabCmd+Tab
Close TabCtrl+WCmd+W
Split EditorCtrl+\Cmd+\
Focus Editor Group 1/2/3Ctrl+1/2/3Cmd+1/2/3
Quick File NavigationAlt+Left/RightCtrl+Option+Left/Right

File and Selection Operations

Essential shortcuts for working with files and selections:

ActionWindows/LinuxmacOS
Save FileCtrl+SCmd+S
Save All FilesCtrl+K SCmd+K S
New FileCtrl+NCmd+N
Open FileCtrl+OCmd+O
Format DocumentShift+Alt+FShift+Option+F
Select WordCtrl+DCmd+D
Select LineCtrl+LCmd+L
Select All OccurrencesCtrl+Shift+LCmd+Shift+L
Add Cursor Above/BelowCtrl+Alt+Up/DownCmd+Option+Up/Down
Select to Line Start/EndHome/EndCmd+Left/Right
Select to File Start/EndCtrl+Home/EndCmd+Up/Down

Editing Commands

Shortcuts to help you edit code efficiently:

ActionWindows/LinuxmacOS
Cut LineCtrl+X (with no selection)Cmd+X (with no selection)
Copy LineCtrl+C (with no selection)Cmd+C (with no selection)
Move Line Up/DownAlt+Up/DownOption+Up/Down
Copy Line Up/DownShift+Alt+Up/DownShift+Option+Up/Down
Delete LineCtrl+Shift+KCmd+Shift+K
Insert Line BelowCtrl+EnterCmd+Enter
Insert Line AboveCtrl+Shift+EnterCmd+Shift+Enter
Jump to Matching BracketCtrl+Shift+\Cmd+Shift+\
Indent/Outdent LineCtrl+]/[Cmd+]/[
Toggle Line CommentCtrl+/Cmd+/
Toggle Block CommentShift+Alt+AShift+Option+A
Fold/Unfold CodeCtrl+Shift+[/]Cmd+Option+[/]

AI Features

ThinkCode-specific shortcuts for AI-assisted development:

ActionWindows/LinuxmacOS
Toggle Think PanelCtrl+Shift+TCmd+Shift+T
Accept AI SuggestionTabTab
Dismiss AI SuggestionEscEsc
Next AI SuggestionAlt+]Option+]
Previous AI SuggestionAlt+[Option+[
Generate Code from CommentAlt+EnterOption+Enter
Explain Selected CodeCtrl+Alt+ECmd+Option+E
Refactor Selected CodeCtrl+Alt+RCmd+Option+R
Generate TestsCtrl+Alt+TCmd+Option+T
Document SelectionCtrl+Alt+DCmd+Option+D
Find Problems in CodeCtrl+Alt+PCmd+Option+P
Think Chat FocusCtrl+Alt+CCmd+Option+C
Quick AI CommandAlt+SpaceOption+Space

Search and Navigation

Quickly find things in your codebase:

ActionWindows/LinuxmacOS
Find in FileCtrl+FCmd+F
Replace in FileCtrl+HCmd+H
Find Next/PreviousF3/Shift+F3Cmd+G/Cmd+Shift+G
Find in ProjectCtrl+Shift+FCmd+Shift+F
Replace in ProjectCtrl+Shift+HCmd+Shift+H
Go to LineCtrl+GCmd+G
Go to SymbolCtrl+Shift+OCmd+Shift+O
Go to DefinitionF12F12
Peek DefinitionAlt+F12Option+F12
Go to ReferencesShift+F12Shift+F12
Navigate Back/ForwardAlt+Left/RightCtrl+Option+Left/Right

Terminal and Debug

Control the integrated terminal and debugging:

ActionWindows/LinuxmacOS
New TerminalCtrl+Shift+` Cmd+Shift+`
Toggle TerminalCtrl+` Cmd+`
Clear TerminalCtrl+KCmd+K
Start DebuggingF5F5
Stop DebuggingShift+F5Shift+F5
ContinueF5F5
Step OverF10F10
Step IntoF11F11
Step OutShift+F11Shift+F11
Toggle BreakpointF9F9

AI Think Commands

Use these command patterns in the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):

CommandDescription
Think: Explain SelectionGet an explanation of the selected code
Think: Refactor SelectionSuggest improvements for the selected code
Think: Generate TestsCreate tests for the selected code
Think: Document SelectionGenerate documentation for the selected code
Think: Find ProblemsAnalyze code for potential issues
Think: Fix ProblemsAttempt to fix identified problems
Think: Optimize SelectionSuggest performance improvements
Think: Generate ImplementationCreate implementation from interface or comment
Think: ChatStart a conversation with the AI about your code
Think: Summarize FileGet a summary of the current file's purpose and structure

Custom Keybindings

You can customize any keyboard shortcut in ThinkCode:

  1. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Type "Preferences: Open Keyboard Shortcuts"
  3. Search for the command you want to change
  4. Click the pencil icon next to the command
  5. Press the desired key combination
  6. Press Enter to save

Working with AI Inline Suggestions

ThinkCode provides keyboard shortcuts specifically for working with inline AI suggestions:

ActionWindows/LinuxmacOSDescription
Accept SuggestionTabTabAccept the current suggestion
Dismiss SuggestionEscEscDismiss the current suggestion
Accept WordCtrl+RightCmd+RightAccept just the next word of the suggestion
Next SuggestionAlt+]Option+]Cycle to the next alternative suggestion
Previous SuggestionAlt+[Option+[Cycle to the previous alternative suggestion
Trigger SuggestionAlt+\Option+\Manually trigger suggestion at cursor
Accept LineAlt+EnterOption+EnterAccept the current line of the suggestion
Partial AcceptCtrl+Alt+RightCmd+Option+RightAccept up to cursor position

Think Panel Navigation

Navigate efficiently within the Think Panel:

ActionWindows/LinuxmacOS
Open Think PanelCtrl+Shift+TCmd+Shift+T
Focus Chat InputAlt+C when panel is openOption+C when panel is open
Navigate Chat HistoryUp/Down in chat inputUp/Down in chat input
Submit MessageEnter in chat inputEnter in chat input
New Line in ChatShift+Enter in chat inputShift+Enter in chat input
Close Think PanelEsc when focus is in panelEsc when focus is in panel
Apply Code from Think PanelAlt+A on code blockOption+A on code block
Copy Code from Think PanelAlt+C on code blockOption+C on code block

Productivity Tips

Combine these shortcuts for maximum productivity:

Multiple Selections

  1. Select the first occurrence with Ctrl+D / Cmd+D
  2. Press Ctrl+D / Cmd+D again to select the next occurrence
  3. Keep pressing to select more occurrences
  4. Edit all selections simultaneously

Jump to Symbol

  1. Press Ctrl+Shift+O / Cmd+Shift+O to open the symbol list
  2. Type to filter symbols
  3. Use arrow keys to select and Enter to navigate

Command Palette with AI Commands

  1. Press Ctrl+Shift+P / Cmd+Shift+P
  2. Type "Think:" to see all AI-related commands
  3. Select the command you need

Generate Code with Comments

  1. Write a comment describing what you want
  2. Press Alt+Enter / Option+Enter to generate code
  3. Use Tab to accept or Esc to dismiss

Windows and Linux-Specific Shortcuts

For Windows and Linux users:

ActionShortcut
Show Context MenuShift+F10
Trigger SuggestionCtrl+Space
Rename SymbolF2
Column Selection ModeShift+Alt + Drag
Terminal Scroll Page Up/DownShift+Page Up/Down

macOS-Specific Shortcuts

For macOS users:

ActionShortcut
Open New WindowCmd+Shift+N
Column Selection ModeShift+Option + Drag
Show All WindowsCtrl+Cmd+Down
Trigger SuggestionCtrl+Space
Terminal Scroll Page Up/DownShift+Page Up/Down

Context Menu Shortcuts

Right-click (or Ctrl+Click on macOS) to access context menus with AI actions:

Menu OptionDescription
Think: ExplainExplain selected code
Think: RefactorSuggest improvements
Think: Generate TestsCreate tests for selection
Think: DocumentAdd documentation
Think: OptimizeImprove performance
Think: Analyze in SandboxRun code in AI sandbox

Next Steps

Now that you're familiar with ThinkCode's essential shortcuts:

Pro Tip

Print the ThinkCode Shortcuts Cheatsheet and keep it handy for quick reference while you're learning the most common shortcuts.