Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Pin a fileNew to Visual Studio Code? Get it now.
Pin a file

Pin a file

Lukas Lang

|
1 install
| (1) | Free
Adds the ability to mark a file in a workspace as "pinned" to enable quickly setting e.g. a launch target in a debug configuration.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

Adds the ability to mark a file in a workspace as pinned to enable quickly setting e.g. a launch target in a debug configuration. So instead of having to create a new launch configuration for each test file, you can simply change the currently debugged file with a simple command. Compared to using e.g. ${file}, this has the advantage that it still debugs the correct file if some other file is currently focused. (e.g. some internal code file that can't be run on its own)

Requirements

This extension only works when a workspace/folder is opened.

Known Issues

Release Notes

0.1.0

Add pinnedFileBasenameNoExtension, pinnedFileBasename, pinnedFileDirnameBasename, pinnedFileDirname, pinnedFileExtname commands to align with ${file} variants.

0.0.1

Initial release


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