copy-json-path
copy-json-path copied to clipboard
This extention allow you to copy json path
Copy Json Path
This extension allows you to copy and paste a jsonpath
Install
- Install extension from Visual Studio Marketplace or Open VSX Registry
- Enjoy
Usage
- Open a json file
- Click on any key in the file
-
Ctrl+Maj+p write
Copy json path
and Enter
Showcase
Configuration
Bracket notation
If you want to use bracket notation instead of dot notation, you can set the copy-json-path.bracketNotation
setting to true
.
File name
If you want to add the file name at the beginning of the path, you can set the copy-json-path.includeFileName
setting to true
.
Quotes
When you use the bracket notation the key is surrounded by quotes. With the copy-json-path.quote
setting you can choose the type of quotes to use Single
or Double
.
The default value is Double
.
Output
If you want to change the output format, you can change the copy-json-path.output
setting.
The default output is only the json path represented by the %PATH% variable.
For example, you can change it as follows:
and the result in your clipboard will be :
<TMPL_VAR NAME="path.to.key">