https://github.com/yogeshhrathod/inline-json-formatter
The Inline JSON Formatter for VSCode simplifies JSON editing. Quickly format selected JSON, stringify JavaScript objects, and customize indentation for clean and readable code. Streamline your workflow with this efficient and user-friendly extension.
https://github.com/yogeshhrathod/inline-json-formatter
formatter inline-formatting json vscode-extension
Last synced: 5 months ago
JSON representation
The Inline JSON Formatter for VSCode simplifies JSON editing. Quickly format selected JSON, stringify JavaScript objects, and customize indentation for clean and readable code. Streamline your workflow with this efficient and user-friendly extension.
- Host: GitHub
- URL: https://github.com/yogeshhrathod/inline-json-formatter
- Owner: yogeshhrathod
- Created: 2024-02-04T08:08:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-06T03:49:52.000Z (over 2 years ago)
- Last Synced: 2025-03-04T17:48:53.480Z (over 1 year ago)
- Topics: formatter, inline-formatting, json, vscode-extension
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Inline JSON Formatter

The **Inline JSON Formatter** is a Visual Studio Code extension that allows you to format and manipulate JSON directly within your editor. It provides commands for formatting selected JSON, stringifying JavaScript objects, and customizing the formatting space.
## Features
- **Format Selected JSON:** Format the selected JSON within the active editor.
- **Stringify JavaScript Object:** Convert a selected JavaScript object to a formatted JSON string.
- **Format with Custom Space:** Customize the indentation level (formatting space) when formatting JSON.
## Installation
1. Open Visual Studio Code.
2. Go to the Extensions view (Ctrl + Shift + X or Cmd + Shift + X).
3. Search for "Inline JSON Formatter".
4. Click "Install" to install the extension.
## Usage
### Format Selected JSON
1. Select the JSON text you want to format.
2. Execute the command `inline-json-formatter.formatSelectedJSON`.
### Stringify JavaScript Object
1. Select the JavaScript object.
2. Execute the command `inline-json-formatter.stringifyJavaScriptObject`.
### Format with Custom Space
1. Select the JSON text.
2. Execute the command `inline-json-formatter.formatWithCustomSpace`.
3. Choose the desired formatting space (indentation level).
## Configuration
The extension uses the following configuration:
- **json.formattingSpace:** Default formatting space (indentation level). (Default: 2)
You can customize this configuration in your VSCode settings.
## Contributing
Contributions are welcome! Feel free to submit bug reports, feature requests, or contribute to the development of the extension.
1. Fork the repository.
2. Create your feature branch (`git checkout -b feature/your-feature`).
3. Commit your changes (`git commit -am 'Add some feature'`).
4. Push to the branch (`git push origin feature/your-feature`).
5. Open a pull request.