The Code Editor Android Deserves: LSP, IntelliSense & More
A real code editor for Android: LSP language servers, semantic autocomplete, TextMate syntax highlighting, multi-cursor editing, code navigation and inline diagnostics — all on your phone.
Most "code editors" on Android are glorified text boxes. They lean on Android's
TextView, choke on a 2,000-line file, and offer nothing that would make a real
developer trust them with production code. You get syntax colors if you're lucky,
and that's the end of it. So the moment a bug needs fixing on the go, you reach
for your laptop anyway.
PocketCode takes the opposite approach. Its code editor for Android is built
on Sora Editor, a high-performance engine designed for large
files. Unlike TextView-based solutions, Sora avoids an O(n) copy on every
keystroke, so large files stay smooth. On top of that engine, PocketCode layers
the things you'd expect from a desktop IDE: LSP language servers, semantic
autocomplete, real syntax highlighting, multi-cursor editing, and
deep code navigation. Here's what that actually looks like.
Syntax highlighting that isn't a toy
Highlighting is powered by TextMate grammars (the same .tmLanguage.json
format that VS Code uses), processed by the tm4e engine. That covers 39
languages out of the box — Kotlin, Java, Python, JavaScript, TypeScript (and
TSX), Go, Rust, C, C++, C#, PHP, Ruby, Swift, Scala, SQL, YAML, TOML, Dockerfile,
and more — each mapped to its proper TextMate scope and file extensions.
To keep the editor responsive on a phone, PocketCode ships its own
IncrementalTokenizer that paints tokens instantly instead of waiting for
the full TextMate pass to finish. Around that you get the editor essentials that
make code readable: configurable line numbers, matching brace and parenthesis
indicators, visual indentation guides, and an outline of the file's structure
(classes, functions, comment and import blocks, custom regions) that also feeds
the breadcrumb. There is no code folding: the Sora engine can't hide lines.
Language detection is automatic, by extension (CodeLanguage.fromExtension())
or by filename (CodeLanguage.fromFileName(), which recognizes Dockerfile, .gitignore and Gradle build files; a Makefile opens as plain text), falling back to plain text when nothing
matches.
Autocomplete and IntelliSense, powered by LSP
This is where PocketCode stops being a mobile toy and starts being an IDE. The
editor includes a full Language Server Protocol client — LspClient,
implementing LSP 3.17 — that talks to standard language servers, each installed with one tap from the editor: TypeScript and JavaScript, Pyright for Python, the HTML/CSS/JSON servers, Markdown, YAML (with Docker Compose and GitHub Actions), Dockerfile, Bash, Vue, Svelte, Astro, GraphQL, MDX, Prisma and Angular, plus CSS helpers such as Emmet, Stylelint or UnoCSS. 19 languages have a one-tap language server. Java, Kotlin, Go, Rust, C, C++, Ruby, Swift and Dart have none: their servers are native programs or need a runtime PocketCode doesn't include. PHP works only if the project brings intelephense in its own node_modules. Limits: Bash runs without ShellCheck, YAML does not fetch remote schemas, at most 2 helper servers run at once, and Vue, Svelte, Astro, MDX and Angular use the TypeScript package. GraphQL needs a graphql-config file in the project and Angular an angular.json. Communication runs over JSON-RPC 2.0, with the
server's lifecycle managed for you and one automatic restart if it crashes.
That LSP client is what turns basic completion into real IntelliSense. Here are the eight capabilities it implements:
| LSP method | Feature |
|---|---|
textDocument/completion | Semantic autocomplete |
textDocument/hover | Documentation on hover |
textDocument/definition | Go to definition |
textDocument/references | Find references |
textDocument/signatureHelp | Function parameter hints |
textDocument/formatting | Server-assisted formatting |
textDocument/rename | Safe semantic rename |
textDocument/publishDiagnostics | Real-time server diagnostics |
The Sora engine also provides its own native floating autocomplete window, so you get completion even before wiring up a language server. And for AI-assisted writing, a Ghost Text layer renders suggestions as semi-transparent inline text after the cursor, with a 150 ms grace window before minor cursor movements dismiss it — accepting a suggestion inserts the full text while preserving your undo/redo history, and it never fights the standard autocomplete engine. Ghost Text sends code to the AI provider you configured, after you consent to it.
Editing power: multi-cursor, Emmet, and a symbol keyboard
Typing code on a phone is only painful if the editor makes it painful. Pocket
Code's MultiCursorEngine puts a cursor on every occurrence of the word under
the cursor (Ctrl+Shift+L, or Add Cursors to All Occurrences in the menu)
and edits them all at once — including what you type on the on-screen
keyboard, not only on a physical one.
Emmet works for HTML and CSS through the Expand Emmet Abbreviation command (no shortcut, and Tab doesn't trigger it): ul>li*3 expands to a nested list, div.cls#id becomes <div id="id" class="cls"></div>, and CSS shorthands like df → display: flex or w100p → width: 100% work. It is a subset: there is no ^ and no $ numbering.
Because phone keyboards weren't designed for code, a programming symbol bar
sits above the system keyboard. One section inserts the characters you actually
need — { } [ ] ( ) ; : = and the rest — and another exposes
actions: undo/redo, move a line up or down, toggle line (//) or block (/* */)
comments, duplicate the current line, go to a line, sort selected lines, and
transform case (UPPER / lower). Add pinch-to-zoom font sizing, a
magnifier on long-press for precise cursor placement, and 200 steps of
undo/redo per tab, and the small screen stops being an excuse.
Navigating code like you mean it
A real editor is judged by how fast you can move through a codebase. PocketCode gives you the full navigation kit:
- Go to symbol — a fuzzy-filtered dialog over the active file, covering functions, methods, classes, interfaces, properties, variables, constants, imports and regions, each shown with a context line.
- Outline panel — a slide-out tree of the file's structure that updates live as you edit.
- Peek definition — an inline popup showing ~10 lines of context around a symbol's definition, without moving your cursor.
- Go to references — the references the language server finds, possibly across files; without a server, a text search in the current file only.
- Rename symbol — shows a preview that separates code occurrences from those in strings and comments (which are not renamed) before you apply. With a language server it can edit other files; without one it renames in the current file only.
- Search in Files — text or regex across the project (Ctrl+Shift+F), from the palette or the Go to menu. It skips big files (512 KB or more), stops at 500 results and only searches: there is no replace across files.
- Command palette — a VS Code-style fuzzy entry point to every editor action.
- Auto-import — suggests an
importfor symbols that aren't imported yet, from a built-in table of well-known symbols (Kotlin, Java, Python, JavaScript/TypeScript, Go and Rust); it doesn't look up your project's own symbols.
Diagnostics without a server
You don't always want to spin up a language server, so PocketCode ships a local
InlineDiagnostics engine that catches problems in real time using
per-language rules — no LSP required. It carries rules for Kotlin, Java,
JavaScript/TypeScript, Python, Go, Rust, PHP, CSS, HTML and JSON.
Universal rules flag trailing whitespace, excessive consecutive blank lines, unbalanced brackets, and TODO / FIXME / HACK / XXX / BUG comments. Language-specific rules go further — Kotlin !! usage, JavaScript == instead of === or var instead of let/const, Python mixed tabs and spaces and bare except, malformed JSON. Everything surfaces in a VS Code-style Problems panel,
grouped by file and filterable by severity (ERROR, WARNING, INFO, HINT).
Where it can, the editor fixes things for you. Quick fixes appear next to diagnostics — clean up trailing whitespace, remove blank lines, and apply language-specific actions. And extract refactorings analyze the variables in a selection to pull out a method (with the right parameters and call site) or wrap an expression into a named variable, auto-indented to the correct level.
Formatting, on the device
Formatting is fully on-device — no external tooling, no network round-trip. Eight dedicated formatters cover 24 languages:
| Formatter | Languages |
|---|---|
| C-style | Kotlin, Java, JS, TS, C, C++, C#, Dart, Go, Swift, Rust, PHP, Scala, Gradle |
| Python | Python (PEP-8 indentation) |
| XML/HTML | HTML, XML, SVG |
| JSON | JSON (pretty-print or compact) |
| CSS | CSS, SCSS, Less |
| YAML / SQL / Markdown | YAML, SQL, Markdown |
Format Document (Shift+Alt+F, with Code formatter turned on in Settings) tries the language server first and falls back to these. Indentation and line width come from the project's .editorconfig (indent_style, indent_size, tab_width, end_of_line, max_line_length). Every other language only gets a generic cleanup (trailing spaces, blank lines, final newline).
Built for the phone, not ported to it
The layout adapts across Phone Portrait, Phone Landscape, Tablet and Foldable form factors automatically. A Zen mode hides everything but the text, a split view shows a read-only second pane next to the editor, and tabs stay visible at the top with a VS Code-style explorer one tap away. Every action lives in a menu organized by sections, with a Quick access row for Format, Find, Go to Symbol, Source Control and Run, and, with a session already started, editing, local execution and local Git work on the device without a connection. There are 23 built-in editor themes: 4 free (PocketCode Dark, PocketCode Light, VS Code Dark+, GitHub Light) and 19 Pro.
Real-time collaboration works over your local network: people on the same Wi-Fi edit the same file with presence, cursors and comments, and nothing leaves the network.
A phone is no longer an excuse to write code with a worse tool. PocketCode's editor brings the parts that actually matter — LSP-backed autocomplete and IntelliSense, TextMate syntax highlighting across 39 languages, multi-cursor editing, and full code navigation — to the device that's always in your pocket.
PocketCode is available on Google Play. Get PocketCode to try the editor on your own device.
Frequently asked questions
Is there a good code editor for Android?
Yes. PocketCode is a full code editor with LSP-backed autocomplete, syntax highlighting for 39 languages, multi-cursor editing and built-in Git — running entirely on the phone.
Can you code on Android without a computer?
Yes. PocketCode is a complete IDE: you can write and run code on the phone alone, and debug JavaScript on Node. It needs a connection to sign in; after that your code runs on the device. No laptop or server required.
Is there a code editor for Android with a terminal?
Yes. PocketCode pairs the editor with a built-in terminal (a local shell, SSH and SFTP) and on-device code runners, so you edit and run in the same app.
Does the editor have Git?
Yes — built-in Git with commit, diff, blame and branches, no external client needed.
Is it free and ad-free?
The full editor is free with no ads. The Free plan covers 1 project and 4 of the 23 built-in themes; Pro removes the project limit and adds cloud sync and the Pro themes.
Does it work offline?
You need a connection to sign in; opening the app with a session already started works offline. The editor, local Git and the on-device runners work on the device, and language servers and optional runtime packs, once downloaded, work without a connection too (downloading them needs the network).
Code Editor
Quick answers on this
Keep reading
- TutorialDcoder shut down: what to use instead on AndroidDcoder shut down on 31 March 2026. What happened, and what to use now on Android for Python, web code or several languages, with the limits of each.7 min
- TutorialAn IDE for Android tablets: what a bigger screen changes, and what to useAn Android tablet with a keyboard can be a real coding machine. What to look for in a tablet IDE, the options, and how PocketCode uses the extra space.5 min
- TutorialApps to code on your Android phone in 2026: which one for whatTermux, Acode, Pydroid 3, Replit, Spck and PocketCode: what each app for coding on an Android phone is good at, what it costs and where it stops.5 min

