Master keyboard shortcuts, snippets, and productivity tricks to code faster from your Android device.
Coding on mobile can be fast if you know the right tools. These shortcuts and tricks will make you much more productive.
| 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 |
| 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 |
| Shortcut | Action |
|---|---|
Ctrl + F | Find in file |
Ctrl + H | Find and replace |
Ctrl + Shift + F | Find in project |
Ctrl + Shift + H | Replace in project |
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"
}
}
Pocket Code includes snippets for the most popular languages:
JavaScript/TypeScript:
log β console.log()imp β import ... from '...'exp β export default ...af β () => {}trycatch β Try/catch blockPython:
def β Function definitionclass β Class definitionmain β if __name__ == '__main__':fori β For loop with enumeratewith β Context managerRust:
fn β Functionimpl β Implementationmatch β Pattern matchingtest β Test functionderive β Derive macroHold Alt and tap at different positions to edit multiple lines simultaneously.
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>
Ctrl + Shift + P opens the command palette where you can:
Activate zen mode for distraction-free coding:
Ctrl + K ZIf you use a Bluetooth keyboard with your Android:
For coding without an external keyboard:
Mastering these shortcuts and tricks will transform your development experience in Pocket Code. Practice the most useful ones for your workflow and watch your productivity soar.