search-json-pathExtension to find every JSON file and the respective key containing the specified path. MotivationThe creation of this extension was motivated by the usage of the i18next library. While using i18next I felt the need to quickly access the internationalization JSON files through the path already defined inside the code. Well, that's what this extension resolve. This extension is inspired by copy-json-path extension, which helps you out copying the JSON key full path. Also pretty useful while using i18next. Path formatThe extension currently supports simple paths. See some example below:
Features and UsageSearch InterfaceAn input interface is invoked by the extension. Type the desired path and press Search Json Path command
Right-click and use Search JSON PathRight-click in the document give you the option Code LensesThe code lens feature is shown inside the document directly above the line where the extension identifies a path. It's another quick way to open the Search Interface automatically passing the path identified. Note that the code lens feature is disabled by default to prevent undesired IDE noises because its default way to find out the paths is considering all strings a path. If you want to use this feature, the suggestion is to carefully set the
The Code Lenses supports the following documment languages:
Extension SettingsThe extension default settings are the following:
| Syntax | Type | Default Value | Description |
| ----------- | ----------- | ----------- | ----------- |
| enable | prefixAndSuffix formatsThere are many ways to configure the Same prefix and suffix
Multiple prefix and suffix
Different prefix and suffix
Multiple and Different prefix and suffix
|