Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Fish completionNew to Visual Studio Code? Get it now.

Fish completion

esdmr

|
83 installs
| (0) | Free
Intellisense for fish scripts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Fish completion for VSCode

License VSCode version

Native fish shell completion in VSCode intellisense.

Editing large scripts/functions in fish is less ergonomic compared to a Proper Text Editor™. However, editors (such as VSCode) either do not provide command completions, or it is not integrated with the built-in completions of fish.

This extension queries fish shell completions directly. The extension provides The text in the editor to commandline and then complete -C provides it with a list of completions and descriptions.

Note: There is an experimental variable and function completion in v0.2. You can enable it in settings at fish-completion.assistant.v1.enabled.

Requirements

  • script executable in $PATH (to fake a TTY),
  • /dev/null (to disable the typescript of script),
  • Working fish shell installation.

Installing from source

This project requires Node.JS version 16 minimum. Ensure that you have installed the correct version of Node.JS by running node --version.

The following snippet will download, install, and build the source from GitHub:

git clone https://github.com/esdmr/fish-completion.git
cd fish-completion
corepack pnpm install
corepack pnpm run build

After building, you can either use VSCode to launch it, or run corepack pnpm run package to generate a vsix file.

Porting to other editors

See Porting to other editors.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft