Pardon the mess, Play My Code is in beta!

READY TO PLAY?
CLICK TO LOG IN!

sign up - lost password

Editor Commands

This is a list of all of the keyboard-shortcuts for the editor, for both PC & Mac.

Editor

Standard
Windows
Mac OS
Run Game
Ctrl + E
⌘ + E
Starts running your project from the beginning
Pause Game
Escape
Escape
Pauses the project and switches focus to the editor
Save Code
Ctrl + S
⌘ + S
Saves your project

Select All
Ctrl + A
⌘ + A
Selects all text in the editor
Undo
Ctrl + Z
⌘ + Z
Un-does the last action you performed
Redo
Ctrl + Y,
Ctrl + Shift + Z
⌘ + Y,
⌘ + Shift + Z
If you have just used undo, this will redo what you undid

Toggle Comment
Ctrl + /
⌘ + /
Toggles between commenting and uncommenting the current line
Deleting
Windows
Mac OS
Delete Line
Ctrl + D
⌘ + D
Deletes the current line you are on
Delete Left Word
Ctrl + Backspace
⌥ + Backspace
Deletes the word to the left of the cursor
Delete Right Word
Ctrl + Delete
⌥ + Delete
Deletes the word on the right of the cursor
Delete to Line Start
Ctrl + Shift + Backspace
(not supported)
Deletes everything from the current location to the start of the line
Delete to Line End
Ctrl + Shift + Delete
(not supported)
Deletes everything from the current location to the end of the line
Goto
Windows
Mac OS
Goto
Ctrl + G
(not supported)
Moves you directly to the line number stated
Goto File Start
Ctrl + Home
⌘ + ▲
Moves you to the beginning of the document
Goto File End
Ctrl + End
⌘ + ▼
Moves you to the end of the document
Goto Line Start
Home + Left,
Alt + Left
⌘ + ◀
Moves you to the start of the current line
Goto Line End
End + Right,
Alt + Right
⌘ + ▶
Moves you to the end of the current line
Find & Replace
Windows
Mac OS
Find
Ctrl + F
⌘ + F
Searches for the next item that matches the value given
Replace
Ctrl + H
(not supported)
Searches for, and then replaces, the first item that matches the value given
Replace All
Ctrl + Shift + H
(not supported)
Replaces all items that matches the value given, with your replacement
Select Next
Ctrl + K
(not supported)
Selects the next item that matches the value selected
Select Previous
Ctrl + Shift + K
(not supported)
Selects the previous item that matches the value selected
Copy & Move
Windows
Mac OS
Copy Line Up
Ctrl + Alt + Up
⌘ + ⌥ + ▲
Pastes a copy of the current line, on the line above
Copy Line Down
Ctrl + Alt + Down
⌘ + ⌥ + ▼
Pastes a copy of the current line directly below
Move Line Up
Alt + Up
⌥ + ▲
Moves the current line up one, swapping it with the line above
Move Line Down
Alt + Down
⌥ + ▼
Swaps the current line with the line below, moving the current line down one

Note that commands like 'save' and 'run game' only work outside of the game. This is to prevent them conflicting with commands in the game.

Drawing

Standard
Windows
Mac OS
Save Image
Ctrl + S
⌘ + S
Saves the image

Undo
Ctrl + Z
⌘ + Z
Undo' the last action performed
Redo
Ctrl + R
⌘ + R
Redo's the last undone action

Copy
Ctrl + C
⌘ + C
Copies the current selection, or the whole image if no selection
Cut
Ctrl + X
⌘ + X
Cuts the current selection, or whole image if no selection
Paste
Ctrl + V
⌘ + V
Saves the image
Select All
Ctrl + A
⌘ + A
Selects the whole image with the selection tool

Crop
Ctrl + E
⌘ + E
Crops to the current selection, or the whole image
Delete
delete
delete
Deletes everything in the current selection, or whole image
Tools
Windows
Mac OS
Pencil
p
p
Switches to Pencil tool
Brush
b
b
Switches to Brush tool
Eraser
e
e
Switches to Eraser tool
Rectangle
r
r
Switches to Rectangle tool
Circle
c
c
Switches to Circle tool
Line
l
l
Switches to Line tool
Fill
f
f
Switches to Fill tool
Zoom
z
z
Switches to Zoom tool

Selection
s
s
Switches to Selection tool
Move Tool
m
m
Switches to Move Selection tool

Color Picker
k
k
Switches to the Color Picker tool
Color Picker Toggle
hold alt
hold alt
Switches to the colour picker, whilst alt is down
Tool Specific
Windows
Mac OS
With Pencil
hold shift
hold shift
Temporarily switches to the Eraser
With Brush
hold shift
hold shift
Temporarily switches to the Eraser
With Rectangle
hold shift
hold shift
Toggles between outline and filled
With Circle
hold shift
hold shift
Toggles between outline and filled
With Line
hold shift
hold shift
Toggles between smooth and non-smooth line
With Zoom
hold shift
hold shift
Allows zooming in opposite direction