Skip to main content

Basic Editing

CommandmacOSWindows/Linux
Undo + ZCtrl + Z
Redo + + ZCtrl + Shift + Z
Copy + CCtrl + C
Cut + XCtrl + X
Paste + VCtrl + V
Save + SCtrl + S
Select All + ACtrl + A
IndentTabTab
Outdent + TabShift + Tab
Format FileF4F4

Cursor Movement

CommandmacOSWindows/Linux
Move by Character//
Move by Line//
Move by Word + /Alt + /
Move by Subword + + /
Move to Line Start/End + /Ctrl + /
Move to Document Start/End + /Ctrl + /

Selection

All cursor movement commands can be combined with (Shift) to extend the selection:
CommandmacOSWindows/Linux
Select by Character + /Shift + /
Select by Line + /Shift + /
Select by Word + + /Shift + Alt + /
Select to Line Start/End + + /Shift + Ctrl + /
Select to Document Start/End + + /Shift + Ctrl + /

Line Operations

CommandmacOSWindows/Linux
Toggle Comment + /Ctrl + /
Insert Line Below + Ctrl + Enter
Insert Line Above + + Ctrl + Shift + Enter
Move Line(s) Up + Alt +
Move Line(s) Down + Alt +
Duplicate Line Up + + Shift + Alt +
Duplicate Line Down + + Shift + Alt +

Multi-Cursor Editing

CommandmacOSWindows/Linux
Add Cursor + ClickAlt + Click
Select Next Occurrence + DCtrl + D
Collapse to Single CursorEscEsc

Search and Replace

CommandmacOSWindows/Linux
Find + FCtrl + F
Find in Files + + FCtrl + Shift + F
Find Next + G or Ctrl + G or Enter
Find Previous + + GCtrl + Shift + G
Close SearchEscEsc
The search panel includes toggle buttons for:
  • Match Case: Toggle case-sensitive search
  • Whole Word: Toggle whole word matching
  • Regex: Toggle regular expression mode

Code Navigation

CommandmacOSWindows/Linux
Go to Definition + ClickCtrl + Click
File Palette + PCtrl + P
Command Palette + + PCtrl + Shift + P
Global Search + KCtrl + K

File and Tab Management

CommandmacOSWindows/Linux
Close Tab + WCtrl + W
Previous Tab + + [Ctrl + Shift + [
Next Tab + + ]Ctrl + Shift + ]
Tab Palette Forward + TabCtrl + Tab
Tab Palette Backward + + TabCtrl + Shift + Tab

Autocomplete

CommandmacOSWindows/Linux
Previous Suggestion
Next Suggestion
Accept Suggestion or TabEnter or Tab
DismissEscEsc

Mouse Actions

ActionDescription
ClickPlace cursor at click position
Double-clickSelect the word at click position
Click in gutterSelect entire line
+ ClickExtend selection to click position
+ ClickAdd additional cursor at click position
+ HoverShow definition preview for symbol under cursor
+ ClickGo to definition of symbol under cursor
Click and dragSelect text by dragging
Click and drag in gutterSelect multiple lines

Auto-Closing Pairs

The editor automatically inserts closing characters for:
OpeningClosingNotes
{}Curly braces
[]Square brackets
()Parentheses
""Double quotes (not inside strings)
''Single quotes (not inside strings)
``Backticks (not inside strings)

Surrounding Selection

When text is selected, typing an opening character wraps the selection:
TypeSelection becomes
{{selection}
[[selection]
((selection)
""selection"
''selection'
``selection`
<<selection>

Auto-Completion for Luau Blocks

When pressing (Enter) after certain keywords, the editor auto-completes the block structure:
After typing…Auto-inserts
functionend on new line
doend on new line
thenend on new line
elseend on new line
repeatuntil false on new line

Smart Indentation

  • Pressing (Enter) automatically maintains the current indentation level
  • After opening keywords (function, do, then, else, repeat, {), the next line is indented
  • (Backspace) in the indent region removes a full tab (2 spaces) at a time
  • + (Home) toggles between column 0 and the first non-whitespace character
  • Indentation uses 2 spaces (soft tabs)
  • Line comments use -- (Luau style)

Diff Mode

When viewing AI-generated changes:
ActionDescription
Hover over chunkShows accept/reject buttons
Accept buttonAccept the changes in this chunk
Reject buttonReject the changes and restore original
Accept AllAccept all pending changes
Reject AllReject all pending changes