PoshGUI Docs
All docs

Docs / General

Code editors Keyboard Shortcuts

All of the code editors on the site like XAML, PowerShell, and JSON are the ACE Editor

Below you can see all of the various keyboard shortcuts like “Fold all” to manage the code better:

Line operations

ActionWindows/LinuxMac
Remove lineCtrl-DCommand-D
Copy lines downAlt-Shift-DownCommand-Option-Down
Copy lines upAlt-Shift-UpCommand-Option-Up
Move lines downAlt-DownOption-Down
Move lines upAlt-UpOption-Up
Remove to line endAlt-DeleteCtrl-K
Remove to linestartAlt-BackspaceCommand-Backspace
Remove word leftCtrl-BackspaceOption-Backspace, Ctrl-Option-Backspace
Remove word rightCtrl-DeleteOption-Delete
Split line—Ctrl-O

Selection

ActionWindows/LinuxMac
Select allCtrl-ACommand-A
Select leftShift-LeftShift-Left
Select rightShift-RightShift-Right
Select word leftCtrl-Shift-LeftOption-Shift-Left
Select word rightCtrl-Shift-RightOption-Shift-Right
Select line startShift-HomeShift-Home
Select line endShift-EndShift-End
Select to line endAlt-Shift-RightCommand-Shift-Right
Select to line startAlt-Shift-LeftCommand-Shift-Left
Select upShift-UpShift-Up
Select downShift-DownShift-Down
Select page upShift-PageUpShift-PageUp
Select page downShift-PageDownShift-PageDown
Select to startCtrl-Shift-HomeCommand-Shift-Up
Select to endCtrl-Shift-EndCommand-Shift-Down
Duplicate selectionCtrl-Shift-DCommand-Shift-D
Select to matching bracketCtrl-Shift-P—

Multicursor

ActionWindows/LinuxMac
Add multi-cursor aboveCtrl-Alt-UpCtrl-Option-Up
Add multi-cursor belowCtrl-Alt-DownCtrl-Option-Down
Add next occurrence to multi-selectionCtrl-Alt-RightCtrl-Option-Right
Add the previous occurrence to multi-selectionCtrl-Alt-LeftCtrl-Option-Left
Move the multi cursor from current line to the line aboveCtrl-Alt-Shift-UpCtrl-Option-Shift-Up
Move multi cursor from current line to the line belowCtrl-Alt-Shift-DownCtrl-Option-Shift-Down
Remove current occurrence from multi-selection and move to nextCtrl-Alt-Shift-RightCtrl-Option-Shift-Right
Remove current occurrence from multi-selection and move to previousCtrl-Alt-Shift-LeftCtrl-Option-Shift-Left
Select all from multi-selectionCtrl-Shift-LCtrl-Shift-L

Go to

ActionWindows/LinuxMac
Go to leftLeftLeft, Ctrl-B
Go to rightRightRight, Ctrl-F
Go to word leftCtrl-LeftOption-Left
Go to word rightCtrl-RightOption-Right
Go line upUpUp, Ctrl-P
Go line downDownDown, Ctrl-N
Go to line startAlt-Left, HomeCommand-Left, Home, Ctrl-A
Go to line endAlt-Right, EndCommand-Right, End, Ctrl-E
Go to page upPageUpOption-PageUp
Go to page downPageDownOption-PageDown, Ctrl-V
Go to startCtrl-HomeCommand-Home, Command-Up
Go to endCtrl-EndCommand-End, Command-Down
Go to lineCtrl-LCommand-L
Scroll line downCtrl-DownCommand-Down
Scroll line upCtrl-Up—
Go to matching bracketCtrl-P—
Scroll page down—Option-PageDown
Scroll page up—Option-PageUp

Find/Replace

ActionWindows/LinuxMac
FindCtrl-FCommand-F
ReplaceCtrl-HCommand-Option-F
Find nextCtrl-KCommand-G
Find previousCtrl-Shift-KCommand-Shift-G

Folding

ActionWindows/LinuxMac
Fold selectionAlt-L, Ctrl-F1Command-Option-L, Command-F1
UnfoldAlt-Shift-L, Ctrl-Shift-F1Command-Option-Shift-L, Command-Shift-F1
Fold allAlt-0Command-Option-0
Unfold allAlt-Shift-0Command-Option-Shift-0

Other

ActionWindows/LinuxMac
IndentTabTab
OutdentShift-TabShift-Tab
UndoCtrl-ZCommand-Z
RedoCtrl-Shift-Z, Ctrl-YCommand-Shift-Z, Command-Y
Show the settings menuCtrl-,Command-,
Toggle commentCtrl-/Command-/
Transpose lettersCtrl-TCtrl-T
Enter full screenCtrl-EnterCommand-Enter
Change to lower caseCtrl-Shift-UCtrl-Shift-U
Change to upper caseCtrl-UCtrl-U
OverwriteInsertInsert
Macros replayCtrl-Shift-ECommand-Shift-E
Macros recordingCtrl-Alt-E—
DeleteDelete—
Center selection—Ctrl-L