Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Bazel File PathNew to Visual Studio Code? Get it now.
Bazel File Path

Bazel File Path

Bohan Li

|
129 installs
| (0) | Free
Copies the Bazel Target path associated with the current file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

bazelfilepath README

Copies path of current file using standard bazel target format.

Example:

//path/to/file.py -> //path/to:file

To use: add the following keybinding to your keybindings.json file:

{
  "key": "ctrl+shift+c",
  "command": "extension.copyBazelFilePath"
}

Now you can copy the path of the current file to your clipboard by pressing ctrl+shift+c.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft