Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AntNew to Visual Studio Code? Get it now.
Ant

Ant

Ant language

|
1 install
| (0) | Free
Ant language support: highlighting, editing defaults, and the ant language server.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ant for Visual Studio Code

Support for the Ant programming language: highlighting, formatting, and the language features of ant lsp, including diagnostics, completion, hover, go to definition, references, and rename.

Install ant

The extension does not bundle ant:

go install github.com/ant-src/ant/cmd/ant@latest

It finds ant on PATH or in your Go bin directory. Set ant.path to use another one.

Commands

  • Ant: Run File runs the current file with ant run
  • Ant: Restart Language Server
  • Ant: Show Server Output

Tasks

A task of type ant in tasks.json runs a file with ant run, so it can be the default build task or have a keyboard shortcut:

{ "type": "ant", "file": "main.ant", "label": "run main", "group": "build", "problemMatcher": "$ant" }

Development

npm install
npm test                  # grammar tests
npm run test:integration  # tests in VS Code, needs ../ant
npm run package           # builds the .vsix

To release, run npm version patch && git push --follow-tags. CI attaches ant.vsix to a GitHub release and publishes it to the Marketplace.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft