Format .svelte files directly inside Acode (Android code editor) — fully offline, no internet required.
Powered by Prettier 3 and prettier-plugin-svelte.
Ctrl+Alt+S.https://github.com/GIT-DIBBO/acode-svelte-formatter/archive/refs/heads/main.zip
.aipsvelte-formatter.aip from the Releases page..aip file.git clone https://github.com/GIT-DIBBO/acode-svelte-formatter.git
cd acode-svelte-formatter
npm install
npm run build
# → creates svelte-formatter.aip
# Install via Acode → Plugins → ⊕ → Local
npm run dev
# In Acode: Plugins → ⊕ → Remote → http://<your-pc-ip>:3000/dist.zip
| Action | How |
|---|---|
| Format current file | Ctrl+Alt+S or Acode → Format |
| Configure options | Acode → Settings → Plugins → Svelte Formatter Offline |
| Auto-format + save | Enable Auto Format & Save in plugin settings |
| Setting | Default | Description |
|---|---|---|
| Tab Width | 2 |
Spaces per indent level |
| Print Width | 80 |
Max line length before wrapping |
| Use Tabs | false |
Indent with tabs instead of spaces |
| Single Quotes | false |
Use ' instead of " |
| Trailing Commas | all |
all / es5 / none |
| Block Sort Order | options-scripts-markup-styles |
Order of top-level Svelte blocks |
| Strict Mode | false |
Enable stricter Svelte formatting rules |
| Allow Shorthand | true |
Allow {name} attribute shorthand |
| Auto Format & Save | false |
Format + save active .svelte file on a timer |
minVersionCode: 290)MIT © DIBBO