Command Variable installs statistics
By rioj7 · VS Code Marketplace · Other
Calculate command variables for launch.json and tasks.json
Command Variable has 173,691 recorded installs on VS Code Marketplace, an increase of 2.0% over the past 30 days, ranking #1696 of 2,515 tracked listings.
Rating: 4.78 / 5 from 18 ratings
About Command Variable
Command Variable
Visual Studio Code provides variable substitution to be used in launch.json and tasks.json.
One of the variables allows the result of a command to be used with the following syntax: ${command:commandID}
If a command or variable is almost what you need you can use the transform command to perform a regular expression find-replace of the result.
Not all commands are supported yet in the web extension version. Supported commands are marked with : (Web)
Some commands can store/remember the result to be retrieved later in the session.
If you want persistent storage have a look at the commandvariable.remember.persistent.file setting.
Table of contents
- Commands
- Usage
- Configuration / Settings
- FileAsKey
- File Content
- File Content Key Value pairs
- File Content JSON Property
- File Content YAML Property
- File Content Multiple Key-Values/Properties
- File Content in Editor
- Config Expression
- JavaScript Expression
- Pick File
- Open Dialog
- Save Dialog
- number
- remember
- pickStringRemember
- promptStringRemember
- Multicursor and text
- inTerminal
- getClipboard
- setClipboard
- Transform
- Transform::saveToFile
- Variables
checkEscapedUI- Workspace name in
argument - UUID
- dateTime
- Credits
Commands
This extension provides a number of commands that give a result based on the current file or the workspace path or that produce a result based on arguments
extension.commandvariable.file.relativeDirDots: The directory of the current file relative to the workspace root directory with dots as separator. Can be used to specify a Python module.extension.commandvariable.file.relativeFileDots: The same result as${relativeFile}but with dots as separator.extension.commandvariable.file.relativeFileDotsNoExtension: The same result as${relativeFile}but with dots as separator and no file extension. Can be used to specify a Python module.extension.commandvariable.file.filePosix: The same result as${file}but in Posix form. Directory separator '/', and drive designation as '/z/project/'extension.commandvariable.file.fileDirnamePosix: The same result as${fileDirname}but in Posix form.extension.commandvariable.file.fileDirname1Up: The directory path 1 Up of${fileDirname}extension.commandvariable.file.fileDirname2Up: The directory path 2 Up of${fileDirname}extension.commandvariable.file.fileDirname3Up: The directory path 3 Up of${fileDirname}extension.commandvariable.file.fileDirname4Up: The directory path 4 Up of${fileDirname}extension.commandvariable.file.fileDirname5Up: The directory path 5 Up of${fileDirname}extension.commandvariable.file.fileDirname1UpPosix: The same result as${extension.commandvariable.file.fileDirname1Up}but in Posix form.extension.commandvariable.file.fileDirname2UpPosix: The same result as${extension.commandvariable.file.fileDirname2Up}but in Posix form.extension.commandvariable.file.fileDirname3UpPosix: The same result as${extension.commandvariable.file.fileDirname3Up}but in Posix form.extension.commandvariable.file.fileDirname4UpPosix: The same result as${extension.commandvariable.file.fileDirname4Up}but in Posix form.extension.commandvariable.file.fileDirname5UpPosix: The same result as${extension.commandvariable.file.fileDirname5Up}but in Posix form.extension.commandvariable.file.relativeFileDirname1Up: The directory path 1 Up of${relativeFileDirname}extension.commandvariable.file.relativeFileDirname2Up: The directory path 2 Up of${relativeFileDirname}extension.commandvariable.file.relativeFileDirname3Up: The directory path 3 Up of${relativeFileDirname}extension.commandvariable.file.relativeFileDirname4Up: The directory path 4 Up of${relativeFileDirname}extension.commandvariable.file.relativeFileDirname5Up: The directory path 5 Up of${relativeFileDirname}extension.commandvariable.file.relativeFileDirnamePosix: The same result as${relativeFileDirname}but in Posix form.extension.commandvariable.file.relativeFileDirname1UpPosix: The same result as${extension.commandvariable.file.relativeFileDirname1Up}but in Posix form.extension.commandvariable.file.relativeFileDirname2UpPosix: The same result as${extension.commandvariable.file.relativeFileDirname2Up}but in Posix form.extension.commandvariable.file.relativeFileDirname3UpPosix: The same result as…
Description from the VS Code Marketplace listing.
- clipboard
- command
- date
- file
- key
- launch
- multi-root ready
- number
- pick
- remember
- tasks
- uuid
- value
- variable
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Other plugins
All 20 Command Variable alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=rioj7.command-variable. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.