This extension allows you to manage your JSON files in a more efficient way. It provides a set of commands to manipulate JSON files, such as sorting, formatting, and minifying.
Configure your project by creating or updating a settings.json file at the project's root. If you already have a .vscode/settings.json
file, skip the first two steps.
Open the command palette in VSCode:
CTRL + SHIFT + P
(Windows)CMD + SHIFT + P
(Mac OS)Type Preferences: Open Workspace Settings (JSON)
.
In the .vscode/settings.json
file, copy and paste the following settings:
{
"jsonManager.files.include": [
"json",
"jsonc"
], // The file extensions to watch for changes. Example: "json", "jsonc"
"jsonManager.files.exclude": [
"**/node_modules/**",
"**/dist/**",
"**/out/**",
"**/build/**",
"**/.*/**"
], // The files to exclude from watching. Example: "**/node_modules/**", "**/dist/**", "**/out/**", "**/build/**", "**/.*/**"
"jsonManager.files.showPath": true, // Show the path of the file in the file name. Example: "home.component.tsx (pages/home)"
}
Restart VS Code
Your project is now set up to automatically format code upon saving.
For the development of this extension, you need to have Node.js installed on your machine. You can download it from the official website.
Clone the repository:
git clone
Install the dependencies:
npm install
Open the project in VSCode:
code .
Press F5
to open a new window with the extension loaded.
Make your changes in the src
directory.
To test the extension in a webview, run the following command:
npm run dev
This command will open a new window with the extension loaded.
Make your changes in the webview
directory.
Run the build command:
npm run build
Run the compile command:
npm run compile
The compiled files will be in the out
directory.
Press F5
to open a new window with the extension loaded.
Run the package command:
vsce package
Run the publish command:
vsce publish
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Please read CODE_OF_CONDUCT.md for details on our code of conduct.
See CHANGELOG.md
See also the list of contributors who participated in this project.
JSON Manager is licensed under the MIT License - see the MIT License for details.