Keyboard Shortcuts & Productivity in PocketCode
Master keyboard shortcuts, snippets, and productivity tricks to code faster from your Android device.
Keyboard Shortcuts & Productivity in PocketCode
Coding on mobile can be fast if you know the right tools. Every
shortcut below is real: it's the same list the editor shows under Tools ›
Keyboard Shortcuts (Ctrl + Shift + /), generated from its own command
registry.
Keyboard shortcuts
Editing
| Shortcut | Action |
|---|---|
Ctrl + Z | Undo |
Ctrl + Shift + Z / Ctrl + Y | Redo |
Ctrl + D / Ctrl + Shift + D | Duplicate line |
Ctrl + Shift + K | Delete line |
Ctrl + Shift + ↑/↓ / Alt + ↑/↓ | Move line up/down |
Ctrl + / | Toggle comment |
Ctrl + ] / Ctrl + [ | Indent / outdent |
Ctrl + Shift + L | Add cursors to all occurrences |
Ctrl + Space | Trigger autocomplete |
Shift + Alt + F | Format document |
F2 | Rename symbol |
Ctrl + . | Quick fixes |
Ctrl + Shift + O | Organize imports |
Ctrl + S / Ctrl + Shift + S / Ctrl + Alt + S | Save / Save as / Save all |
Navigation
| Shortcut | Action |
|---|---|
Ctrl + P | Quick open (files) |
Ctrl + Shift + P | Command palette |
Ctrl + G | Go to line |
F12 / Alt + F12 | Go to definition / peek |
Shift + F12 | Find references |
Ctrl + Tab / Ctrl + Shift + Tab | Next / previous tab |
Ctrl + W | Close tab |
Ctrl + Shift + T | Reopen closed tab |
Ctrl + Shift + E | Explorer |
F8 / Shift + F8 | Next / previous problem |
Ctrl + Shift + M | Problems panel |
Ctrl + \ | Split editor |
F6 / Shift + F6 | Move between regions of the screen |
F11 | Zen mode (outside a debug session) |
Search, run and more
| Shortcut | Action |
|---|---|
Ctrl + F | Find in file |
Ctrl + H | Find and replace |
Ctrl + Shift + F | Find in project |
F5 / Ctrl + F5 | Run file / Run with… |
Shift + F5 | Debug file |
F9 | Toggle breakpoint on the cursor line |
F5 / F10 / F11 | While debugging: continue / step over / step into |
Ctrl + Shift + G | Source control |
Ctrl + I | Ask the AI |
Ctrl + Alt + K | Toggle bookmark |
Ctrl + Alt + L / Ctrl + Alt + J | Next / previous bookmark |
Snippets
Open Snippets Library from the palette or the Edit section of the menu. It has three sources:
- Built-in — 81 snippets across Kotlin, Java, Python, JavaScript,
TypeScript, HTML, CSS, Go, Rust, Swift, SQL, Shell, Dart, C, C++, Ruby and PHP.
For example:
cl(console.log),imp(import),expd(export default),af(arrow function) andtryc(try/catch) in JavaScript;def,class,ifmain,tryexandwithin Python;fn,impl,matchandstructin Rust. - Your own — create them with a name, prefix, language and body, and export or import them as JSON. The free plan keeps up to 5.
- The Marketplace catalog — curated snippets you install from the editor.
Pick one and it's inserted at the cursor.
Productivity tricks
Multi-cursor
Put the cursor on a word and press Ctrl + Shift + L (or use Add Cursors to
All Occurrences in the menu): every occurrence gets a cursor, and whatever you
type — including from the on-screen keyboard — goes to all of them.
For one extra cursor at a time, hold Alt and tap (or click) where you want
it; Alt + tap on an existing cursor removes it. It needs a physical keyboard
or a mouse — on a phone without one, use the occurrences command above.
Emmet
Type an HTML or CSS abbreviation and run Expand Emmet Abbreviation from the palette or the Edit menu:
div.container>ul>li*5>a.link
Generates:
<div class="container">
<ul>
<li><a href="" class="link"></a></li>
<li><a href="" class="link"></a></li>
<li><a href="" class="link"></a></li>
<li><a href="" class="link"></a></li>
<li><a href="" class="link"></a></li>
</ul>
</div>
Command palette
Ctrl + Shift + P (or a tap on the command key at the left of the symbol bar)
opens the palette at the top of the screen. Type to run any editor action;
start with @ to jump to a symbol or : and a number to go to a line.
Zen mode
F11 (or View › Zen mode) hides everything but the code and goes truly full
screen. Leave it with Back, Esc, F11 or the floating button.
External keyboards
A Bluetooth keyboard works out of the box with all the shortcuts above. In Settings › Keybindings you can pick a scheme or rebind keys (PocketCode, VS Code, IntelliJ IDEA, Sublime Text, Atom): the editor follows the table for saving, find and replace, go to line, undo/redo, comment, duplicate and move line, tabs and the debugger, and the keys above keep working while the table doesn't give them to something else.
Touch, without a keyboard
- Command key — tap it for the palette; drag it to move the cursor precisely; hold and drag to select
- Symbol bar — the characters code needs, with a profile per language you can customize (Customize keys…)
- Pinch — zoom the code in and out
- Long press — a magnifier for placing the cursor
Mastering these shortcuts will transform your development experience in PocketCode. Start with the palette and the command key; the rest comes naturally.
Code Editor