# Release shell1.0.0 ## Notes in en-US First release of the **Ark Format: Shell** extension — a dedicated formatter for Shell/Bash scripts in VS Code. ### Features #### Supported Languages - Shell Script (`.sh`), Bash (`.bash`), POSIX Shell (`.sh.posix`), Zsh (`.zsh`) - Korn Shell (`.ksh`), TCSH (`.tcsh`), Azure CLI (`.azcli`), BATS (`.bats`) - Configurable language scope via `effectLanguages` #### Formatting Engines - **Internal engine** (`internal`) — pure TypeScript formatter with no external dependencies - **shfmt engine** (`shfmt`) — optional integration with the [shfmt](https://github.com/mvdan/sh) binary - Configurable path and flags - Automatic detection of `.bats` files - Syntax errors reported in the Problems panel with the exact line/column #### Full Document and Selection Formatting - Full document formatting - Selection/range formatting with reindentation and document context options #### Smart Indentation - Automatic block indentation: `if/then/elif/else/fi`, `for/while/until/do/done`, `case/esac`, functions `{ }` - tcsh support: `switch/endsw`, `foreach/end`, `case label:/default:`, `breaksw` - `case` patterns with `;;`, `;&`, `;;&` terminators - Line continuation with `\` — subsequent lines are indented automatically - Content inside heredocs preserved (no reformatting) - Configurable style: spaces or tabs, adjustable size #### Quote-Aware Lexer - Tokenizer that distinguishes code from string literals - Recognized modes: `code`, `sq` (single quotes), `dq` (double quotes), `ansi` (`$'...'`), `bt` (backtick) - Quote mode tracking across lines (multi-line strings) - Heredoc detection (`<