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. These shortcuts and tricks will make you much more productive.
Essential keyboard shortcuts
Editing
| Shortcut | Action |
|---|---|
Ctrl + Z | Undo |
Ctrl + Y | Redo |
Ctrl + D | Duplicate line |
Ctrl + Shift + K | Delete line |
Alt + ↑/↓ | Move line up/down |
Ctrl + Shift + ↑/↓ | Copy line up/down |
Ctrl + / | Toggle comment |
Ctrl + L | Select line |
Ctrl + Shift + L | Select all occurrences |
Navigation
| Shortcut | Action |
|---|---|
Ctrl + P | Go to file |
Ctrl + G | Go to line |
Ctrl + Shift + O | Go to symbol |
Ctrl + Tab | Switch between tabs |
Ctrl + B | Toggle sidebar |
Ctrl + J | Toggle terminal |
F12 | Go to definition |
Shift + F12 | View references |
Search
| Shortcut | Action |
|---|---|
Ctrl + F | Find in file |
Ctrl + H | Find and replace |
Ctrl + Shift + F | Find in project |
Ctrl + Shift + H | Replace in project |
Custom snippets
Creating a snippet
Open the command palette (Ctrl + Shift + P) and search for "Snippets":
{
"React Functional Component": {
"prefix": "rfc",
"body": [
"export default function ${1:Component}() {",
" return (",
" <div>",
" ${2:content}",
" </div>",
" );",
"}"
],
"description": "React functional component"
}
}
Built-in snippets
PocketCode includes snippets for the most popular languages:
JavaScript/TypeScript:
log→console.log()imp→import ... from '...'exp→export default ...af→() => {}trycatch→ Try/catch block
Python:
def→ Function definitionclass→ Class definitionmain→if __name__ == '__main__':fori→ For loop with enumeratewith→ Context manager
Rust:
fn→ Functionimpl→ Implementationmatch→ Pattern matchingtest→ Test functionderive→ Derive macro
Productivity tricks
Multi-cursor
Hold Alt and tap at different positions to edit multiple lines simultaneously.
Emmet
Type HTML abbreviations and expand them with Tab:
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 opens the command palette where you can:
- Execute any IDE action
- Change settings quickly
- Install extensions
- Run tasks
Zen Mode
Activate zen mode for distraction-free coding:
- Hides all sidebars
- Full screen
- Just code and cursor
- Activate with
Ctrl + K Z
External keyboard setup
If you use a Bluetooth keyboard with your Android:
- Go to Settings > Keyboard > External
- Select the key layout
- Customize shortcuts to your preference
Supported layouts
- QWERTY (US/ES/UK)
- AZERTY (FR)
- QWERTZ (DE)
- Dvorak
- Colemak
Touch gestures
For coding without an external keyboard:
- Two-finger swipe — Horizontal scroll in code
- Pinch — Zoom in/out the editor
- Double tap — Select word
- Triple tap — Select line
- Long press — Context menu
Mastering these shortcuts and tricks will transform your development experience in PocketCode. Practice the most useful ones for your workflow and watch your productivity soar.
Code Editor