Documentation

Editor features, the bottom panel, Run in Termux, the AI assistant, settings, themes, languages and the plugin format. New to Vcode? Start with the guide.

What is Vcode?

Vcode is a fast, free and open source code editor and file manager for Android. It is a modified version of Squircle CE by Blacksquircle and is published under the Apache 2.0 license.

  • Requires Android 7.0 (API 24) or newer.
  • App id: com.vcode.studio, so it installs next to the original Squircle CE.
  • Source code and releases: github.com/Christianzz4603/Vcode.

Installing and updating

  1. Download Vcode-foss.apk from the download link or the releases page.
  2. Allow the install when Android asks you to let your browser or file manager install unknown apps.
  3. Open Vcode and grant access to your files when it asks.
Builds before version 1.5.1 were each signed with a different temporary key, so Android refuses to update over them ("conflict with an existing package"). Uninstall the old build once (back up your files first) and install the new one. From 1.5.1 on, every build is signed with the same key, so updates install over each other.

The editor

Tabs

Each open file has a tab with an icon for its language. A blue dot in place of the close button means the file has unsaved changes. Tap the selected tab to open a menu with close, close others and close all. Tabs can be reordered by dragging.

Languages

Vcode highlights 49 languages, including Kotlin, Java, Python, JavaScript, TypeScript, C, C++, C#, Go, Rust, Swift, PHP, Ruby, SQL, HTML, CSS, SCSS, Markdown and more. See the full list with file extensions. Plugins can map extra file extensions to these languages.

Keyword suggestions

While you type, a small box suggests keywords for the language of the file plus words that already appear in the file. For example, type imp and tap import. Plugins can add their own words per language.

Saving

Turn on Auto save in Settings > Editor to save files automatically. Auto save delay chooses when: when you switch tabs or leave the app, or 1, 3 or 10 seconds after you stop typing.

Cursor and text

  • Cursor style: thin, normal or thick.
  • Smooth cursor animation: animates the cursor when it moves (off by default).
  • Font ligatures: joins characters like => and != when the font supports it (on by default).

IntelliSense

As you type, Vcode suggests keywords, functions and classes for the language of the file, together with words that already appear in the file. Type imp and tap import.

  • Built-in sets: JavaScript, TypeScript, Kotlin, Java, Python, HTML, XML (including Android) and shell.
  • The suggestion data lives in assets/intellisense/*.json in the source code, so you can add your own language.
  • Plugins can add keyword lists for more languages, see Plugins.

Bottom panel

The bottom panel has Problems, Output, Preview and AI tabs. Drag its handle to resize it, or use Full screen when you need room.

  • Output shows what your script prints and ends with the exit code, for example Process finished with exit code 0.
  • Preview shows web content in a built-in view.
  • Problems lists the problems found in the open file.
  • AI is the AI assistant.

Tools bar

The tools bar sits above the row of symbol keys ({ } ( ) < >). It holds Run, Termux, Preview, Output, Problems, AI, Full screen and Hide.

  • Run runs JavaScript and shell scripts inside the app. For other languages use Termux, see Run in Termux.
  • Drag a tool to change its position.
  • Hide the tools you do not use.

Run in Termux

Vcode does not bundle a terminal. To compile or run other languages, it hands the command to the real Termux app, so you can use any package you install there (for example python, clang or nodejs).

  1. Install Termux (the F-Droid or GitHub build) and open it once.
  2. In Termux, allow other apps to run commands, then restart Termux:
    mkdir -p ~/.termux
    echo "allow-external-apps = true" >> ~/.termux/termux.properties
  3. In Vcode, tap Termux in the tools bar. If Android asks for the Termux run-commands permission, allow it.
Android 10 and newer do not let apps run downloaded programs from their own storage, which is why Vcode uses the Termux app instead of shipping its own copy.

AI assistant

The AI tab lets you ask questions about your code. Answers stream in as they are written.

  1. Create an API key at OpenRouter.
  2. In Vcode, open Settings, then AI assistant, and add the key.
  3. Open the AI tab and ask your question.

Quick actions: Explain, Fix problems, Refactor and Clear. Under each answer, Copy copies it and Insert code at cursor puts its code into your file.

You pay your own OpenRouter usage. The key is stored in the app settings on your device without extra encryption, so use a key with a spending limit.

Command palette and status bar

The magnifier button in the toolbar opens the command palette. Type to search every editor action, such as File: Save, Run: Run File, Git: Commit or View: Toggle Panel, and the commands of your plugins.

The status bar at the bottom shows the line and column (and how many characters are selected), the indentation, the number of problems and the language, plus texts from plugins. Under the tabs, a breadcrumb bar shows the path of the open file.

Archives, compiled XML and DEX

In the file browser, tap a .zip, .jar, .apk, .aar, .war, .ear, .xapk, .apks, .aab or .dex file and it opens like a folder.

  • Open a file inside, edit it and save: Vcode writes the archive again. The first time, a copy of the original is kept next to it as .orig.
  • You can create files and folders, rename, delete and copy files in and out of a zip based archive.
  • Compiled XML, such as the AndroidManifest.xml of an APK, is shown as text and compiled again when you save. Before it writes anything, Vcode decodes its own result and compares it with your text, and refuses to save if something would be lost. References to resources are shown as ids like @0x7f0b0001.
  • Images and resources.arsc are shown as a note and cannot be saved as text.
  • An edited APK has to be signed again before Android installs it. Vcode cannot sign yet.

A .dex file, or the classes.dex inside an APK, shows its packages as folders and its classes as .smali files. Open a class, edit it and save: the class is assembled and written back into the DEX file (and into the APK). Deleting a class or package works, renaming or creating classes does not yet. Very large DEX files can run out of memory. The commands Dex: Open Class and Dex: Apply Changes to DEX in the command palette do the same for a DEX file that you opened as a file.

Library viewer

A native library (.so), in the file browser or inside an APK, opens as a read-only folder:

  • info.txt: header, sections and the number of functions
  • symbols.txt and strings.txt
  • functions/: a file for every function with its disassembly
  • code/: the code sections in pieces of 16 KB

ARM64 code is disassembled. Branch targets get the name of the function they point to, calls through the PLT are named (for example memcpy@plt), and C++ and Rust names are shown readable. Libraries for other CPU types show their information but not the code yet. The viewer is written in Rust and only part of builds that were made with the Rust toolchain.

Themes

Vcode ships 15 themes: Vcode Dark, Dark+, Light+, One Dark, GitHub Dark, Dracula, Darcula, Eclipse, Monokai, Obsidian, IntelliJ Light, Ladies Night, Tomorrow Night, Solarized Light, Visual Studio. Pick one in Settings > Application > Color scheme. A theme colors the whole app, not only the code. Vcode Dark is the default. Plugins can add more themes. See all of them on the themes page.

Settings reference

SectionWhat is inside
ApplicationColor scheme, fullscreen mode, confirm exit.
EditorCursor style, smooth cursor animation, font ligatures, auto save and auto save delay, read-only mode, soft keyboard and other editing and display options.
Code styleFont and text options such as font size, font type and tab width.
FilesOptions for the file manager.
TerminalOptions for the built-in terminal.
KeybindingsKeyboard shortcuts.
CloudRemote servers for browsing and editing files over SFTP and FTP(S).
GitYour Git user name and email, and credentials.
PluginsInstall, turn on or off, and remove plugins.
AboutVersion, privacy policy, website and contribution links.

Plugins

Plugins add themes, keyword suggestions and file types. A plugin is data only by default: one with only themes, keywords and file types contains no code, so installing it cannot run anything on your phone. A plugin can also contain Kotlin code. You have to turn on Allow code plugins first, Vcode shows the permissions and the SHA-256 of the file before it installs one, and the code runs inside Vcode with the same access as the app, so only install code plugins from authors you trust. See the plugin guide. Browse the plugins published for Vcode on the plugins page.

Install a plugin

  1. Open Settings > Plugins.
  2. Tap Install plugin and pick a .zip or .json file.
  3. Use the switch to turn it on or off, or Remove to delete it.

Themes show up in the color scheme list right away. Keyword suggestions and file types apply to files you open afterwards.

Plugin format

A plugin is a single plugin.json file, or a .zip with plugin.json at the top level (or inside one top-level folder) plus the theme files it uses.

{
  "id": "example.neon-pack",
  "name": "Neon Pack",
  "version": "1.0.0",
  "author": "Your name",
  "description": "A neon theme and a few web keywords",
  "themes": ["themes/neon.json"],
  "keywords": { "javascript": ["requestAnimationFrame", "IntersectionObserver"] },
  "extensions": { ".mjs": "javascript" }
}
FieldRequiredNotes
idyes3 to 64 characters: letters, digits, ., -, _. Installing the same id again replaces the plugin.
nameyesShown in the plugin list.
version, author, descriptionnoShown in the plugin list.
themesnoList of theme JSON files, relative to plugin.json.
keywordsnoObject: language name to a list of words (up to 5000 per language, each up to 64 characters).
extensionsnoObject: file extension with the dot to a language name.

At least one of themes, keywords or extensions is required. Language names are the ones from languages.json, for example javascript, python, kotlin, cpp, html, css, markdown, swift, rust, go.

Theme files

A theme file has a name, a type ("dark" or "light"), a colors object and optional tokenColors (TextMate scopes for syntax highlighting). Start by copying vcode_dark.json and changing the colors. Every theme needs all of these keys as #RRGGBB:

global.colorPrimary
global.colorOutline
global.colorBackgroundPrimary
global.colorBackgroundSecondary
global.colorBackgroundTertiary
global.colorTextAndIconPrimary
global.colorTextAndIconPrimaryInverse
global.colorTextAndIconSecondary
global.colorTextAndIconDisabled
global.colorTextAndIconAdditional
global.colorTextAndIconSuccess
global.colorTextAndIconError
editor.background
editor.foreground
editor.whitespace
editor.cursor
editor.handle
editor.selection.background
editor.currentLine.background
editor.highlightedDelimiters.background
editor.highlightedDelimiters.foreground
editor.matchHighlight.background
editor.lineNumber.divider
editor.lineNumber.background
editor.lineNumber.foreground
editor.lineNumber.activeForeground
editor.indentGuide.background
editor.indentGuide.activeBackground
editor.popupWindow.corner
editor.popupWindow.background
editor.popupWindow.activeBackground

If a color is missing, the plugin is rejected with a message that names the file and the color.

Limits

  • Up to 8 MB per plugin and 200 files in a .zip.
  • File paths inside a .zip must stay inside the plugin folder.

Examples: examples/plugins in the repository. Zip the contents of a plugin folder, so that plugin.json is at the top, then install the .zip.

Building from source

You need JDK 17, about 1.1 GB of free disk space and 4 GB of RAM.

git clone --recursive --depth=1 --shallow-submodules https://github.com/Christianzz4603/Vcode Vcode
cd Vcode
./gradlew :app:assembleFossRelease

Create a local.properties file with KEYSTORE_PATH, KEYSTORE_PASSWORD, KEY_ALIAS and KEY_PASSWORD to sign the release build. The repository also contains a GitHub Actions workflow that builds the FOSS APK and publishes it on every push to main.

Credits and license

Vcode is built on Squircle CE by Blacksquircle and its contributors, and on the sora-editor component library. It is licensed under the Apache License 2.0. See the NOTICE file for the list of modifications and the privacy policy.