Keyboard shortcuts
General
Hold down Alt (Windows), Shift (on Linux) or Option (on Mac) to prevent loading the user interface state for the IDE. This prevents the loading of tabs and defaults Xojo to a standard window size.
⌥ = Option key
⌘ = Command key
^ Ctrl = Control key
⇧ or Shift = Shift key
Alt = Alternate key
Code Editor
These are the keyboard shortcuts that work with the Code Editor. Add Shift to many of the these commands to also select the text. In general, the Code Editor on Mac uses standard Cocoa text editor keyboard shortcuts, so there may be other shortcuts available that are not listed here.
Mac |
Windows |
Linux |
Description |
---|---|---|---|
⌘ + [Double-click on method] |
Ctrl + [Double-click on method] |
Ctrl + [Double-click on method] |
Navigate to the method that was double-clicked. |
⌘ ' |
Ctrl ' |
Ctrl ' |
Comment or uncomment the selected block of code. If not code is selected, then it works on the current line. |
⌥ Enter/⌥ Return |
Ctrl m/Enter Return |
Ctrl m/Enter Return |
Adds the Line Continuation character (_) and moves you to a new line. |
⌘ \ |
Ctrl \ |
Ctrl \ |
Toggles the breakpoint on/off for the current line of code. |
⇧ Return |
Shift Return |
Shift Return |
This will auto-complete a code block. For example, if you type If True and then press Shift-Return, the code editor will auto-complete to look add the Then, a blank line and the End If then position the cursor on the blank line between the If and End If. This works with all code blocks, such as If...Then, While...Wend, For...Next, Select Case, etc. |
⌘ Left Arrow |
Home |
Home |
Moves the cursor to the beginning of the line. |
⌘ Right Arrow |
End |
End |
Moves the cursor to the end of the line. |
^ t |
Transposes the characters at the cursor. |
||
^ k |
Deletes characters from the cursor to the end of the line. |
||
⌥ Backspace |
Ctrl Backspace |
Ctrl Backspace |
Deletes the previous word. |
⌘ Backspace |
Deletes characters from the cursor to the beginning of the line. |
||
⌥ Right Arrow |
Ctrl Right Arrow |
Ctrl Right Arrow |
Moves forward one word at a time. |
⌥ Left Arrow |
Ctrl Left Arrow |
Ctrl Left Arrow |
Moves backward one word at a time. |
⌥ Delete |
Ctrl Delete |
Ctrl Delete |
Deletes the next word. |
⌘ Up Arrow or Home |
Ctrl Home |
Ctrl Home |
Go to first line of code. |
⌘ Down Arrow or End |
Ctrl End |
Ctrl End |
Go to last line of code. |