@ttsc/vscode
v0.15.1
Published
Show ttsc plugin diagnostics in VS Code, with @ttsc/lint errors, fix-all actions, and formatter support.
Maintainers
Readme
ttsc for VS Code

Bring ttsc plugin diagnostics into VS Code.
When @ttsc/lint or another LSP-capable ttsc plugin like typia reports a compile-time diagnostic, this extension shows it in the editor next to normal TypeScript errors.
Use it when the project already runs ttsc. Add @ttsc/lint when you also want lint diagnostics, fix-all actions, and formatting in the editor.

Requirements
- VS Code 1.94 or later.
- Node.js 18 or later.
- A workspace with
tsconfig.jsonorjsconfig.json. - Project-installed
ttsc,@typescript/native-preview, and thettscplugins you want editor diagnostics from.
Install the common project dependencies:
npm install -D ttsc @typescript/native-preview @ttsc/lint@ttsc/lint is optional for TypeScript-Go language features, but required for the lint and format commands shown below.
Install
Install from the VS Code Marketplace by searching ttsc and choosing the extension by samchon.
From a shell, the short installer is:
npx @ttsc/vscodeThe direct VS Code CLI form is:
code --install-extension samchon.ttscTo uninstall the npm-installed copy:
npx @ttsc/vscode uninstallBoth shell commands use the code CLI. If it isn't on your PATH, run Shell Command: Install 'code' command in PATH from VS Code's command palette.
Configuration
lint.config.ts
At the project root, this drives both the lint rules and the formatter. Without it the extension still type-checks, but @ttsc/lint diagnostics and formatting do nothing:
// lint.config.ts
import type { ITtscLintConfig } from "@ttsc/lint";
export default {
rules: {
"no-var": "error",
"prefer-const": "error",
"typescript/no-explicit-any": "warning",
"typescript/no-floating-promises": "error",
},
format: {
printWidth: 100,
singleQuote: true,
trailingComma: "all",
},
} satisfies ITtscLintConfig;.vscode/settings.json
Set samchon.ttsc as the default formatter and turn on editor.formatOnSave:
{
"[typescript][typescriptreact]": {
"editor.defaultFormatter": "samchon.ttsc",
"editor.formatOnSave": true
}
}Lint fixes stay off-save by default because they can change code meaning. Run ttsc: Fix all lint issues from the command palette, or opt in on manual saves:
{
"editor.codeActionsOnSave": {
"source.fixAll.ttsc": "explicit"
}
}What it adds
- TypeScript-Go diagnostics, hover, navigation, and completions.
@ttsc/lintdiagnostics and code actions, includingsource.fixAll.ttsc.- Diagnostics reported by other LSP-capable
ttscplugins. ttsc: Fix all lint issues,ttsc: Format document, andttsc: Restart language serverin the command palette.- Format on save with the
formatblock fromlint.config.*. - Multi-root workspace support. Each package can use its own
ttsc,@typescript/native-preview,tsconfig.json, andlint.config.*.
Save the file before relying on lint diagnostics or running the command-palette lint and format commands. Format-on-save works on the live editor buffer.
Troubleshooting
No diagnostics? Work through these in order:
- Confirm the workspace has a
tsconfig.jsonorjsconfig.json. - Confirm
ttscresolves in the project:npx ttsc --version. - Confirm the project itself checks:
npx ttsc --noEmit. - Open View → Output → ttsc and read the server log.
- For full LSP tracing, set
ttsc.trace.serverto"verbose"and reload the window.
Sponsors
Thanks for your support.
Your donation encourages ttsc development.

