Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Translate JSON ClipboardNew to Visual Studio Code? Get it now.
Translate JSON Clipboard

Translate JSON Clipboard

GameTimeDev

|
36 installs
| (0) | Free
Copy the path of a string value from a JSON file, for Angular/Translate
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

A little helper for copy & past

This extension should make it easier to quickly copy the path for a STRING value of a JSON file.

How to use | Copy & Paste

Select any key in your json (which has a STRING as value) and press one of the three keyboard shortcuts. alt text

For use in HTML

Shortcut: Ctrl + Shift + C
Format: {{'PATH' | translate}}
Example: {{'EXAMPLE.OTHER.TEST' | translate}}

For use in TS

Shortcut: Ctrl + Shift + X
Format: this.translate.instant('PATH')
Format: this.translate.instant('EXAMPLE.OTHER.TEST')

Only the path

Shortcut: Ctrl + Shift + Y
Format: PATH
Format: EXAMPLE.OTHER.TEST

How to use | Replace

Mark a section in a HTML or TS file and press Ctrl + Shift + A. The extension will search for an exact match in your main transfer file and insert the first match.

Limitations

  • Works only for STRING values
  • If Key and String has multible it will always select the first (even if selected the other one)
  • Some problems with special values like \n \r "...
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft