https://github.com/influxdata/vsflux
Flux language extension for VSCode
https://github.com/influxdata/vsflux
Last synced: about 1 year ago
JSON representation
Flux language extension for VSCode
- Host: GitHub
- URL: https://github.com/influxdata/vsflux
- Owner: influxdata
- License: mit
- Created: 2019-10-31T15:24:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-18T00:36:54.000Z (over 1 year ago)
- Last Synced: 2025-03-24T22:42:00.049Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 3.24 MB
- Stars: 26
- Watchers: 39
- Forks: 10
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# Flux
[](https://marketplace.visualstudio.com/items?itemName=influxdata.flux)
[](https://github.com/influxdata/vsflux/blob/master/LICENSE)
[](https://www.influxdata.com/slack)
A [Visual Studio Code](https://visualstudio.microsoft.com/) extension with support for the working with InfluxDB instances.
Features:
* Flux language support
* Syntax highlighting
* Autocompletion
* Error highlighting
* Find references
* Go to definition
* Function signatures
* Code folding
* Symbol renaming
* Document symbols
* InfluxDB server
* Add/edit/delete buckets
* Inspect bucket measurements and tags
* Add/edit/delete tasks (2.x series only)
* Run flux scripts natively and show results
* Environment-specific autocompletion (bucket names, etc)
## Installation
The extension can be installed through the [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=influxdata.flux).
### Using the cli configurations
Rather than using vscode to store information about influxdb instances fro the InfluxDB pane, vsflux can use existing `influx` cli configurations to populate the InfluxDB pane of connections. To do this, edit `%APP_DATA%/settings.json` to add the following:
{
"vsflux.datasource": "cli"
}
To revert this setting, change `"cli"` to `"db"` or remove the line entirely.
## Contributing
Contribution guidelines and instructions on how to build from source can be found in the [Contributing Guide](https://github.com/influxdata/vsflux/blob/master/CONTRIBUTING.md).