{"id":13452544,"url":"https://github.com/Tom-Bonnike/vscode-formatting-toggle","last_synced_at":"2025-03-23T19:34:36.884Z","repository":{"id":45711341,"uuid":"117087750","full_name":"Tom-Bonnike/vscode-formatting-toggle","owner":"Tom-Bonnike","description":"A VS Code extension that allows you to toggle the formatter (Prettier, Beautify, …) ON and OFF with a simple click.","archived":false,"fork":false,"pushed_at":"2024-03-30T17:20:08.000Z","size":711,"stargazers_count":59,"open_issues_count":2,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-31T07:19:05.225Z","etag":null,"topics":["formatter","preferences","visual-studio-code","visual-studio-code-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tom-Bonnike.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-11T10:51:03.000Z","updated_at":"2024-07-14T18:21:51.000Z","dependencies_parsed_at":"2024-01-16T03:46:27.770Z","dependency_job_id":"c3406c9d-c078-46c3-b508-579ff810fff4","html_url":"https://github.com/Tom-Bonnike/vscode-formatting-toggle","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tom-Bonnike%2Fvscode-formatting-toggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tom-Bonnike%2Fvscode-formatting-toggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tom-Bonnike%2Fvscode-formatting-toggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tom-Bonnike%2Fvscode-formatting-toggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tom-Bonnike","download_url":"https://codeload.github.com/Tom-Bonnike/vscode-formatting-toggle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221900988,"owners_count":16899000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formatter","preferences","visual-studio-code","visual-studio-code-extension"],"created_at":"2024-07-31T07:01:27.103Z","updated_at":"2024-10-28T18:31:32.382Z","avatar_url":"https://github.com/Tom-Bonnike.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ca href=\"https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle#overview\"\u003e\n  \u003cimg src=\"https://img.shields.io/visual-studio-marketplace/v/tombonnike.vscode-status-bar-format-toggle\" /\u003e\n  \u003cimg src=\"https://img.shields.io/visual-studio-marketplace/d/tombonnike.vscode-status-bar-format-toggle\" /\u003e\n  \u003cimg src=\"https://img.shields.io/visual-studio-marketplace/i/tombonnike.vscode-status-bar-format-toggle\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle#review-details\"\u003e\n  \u003cimg src=\"https://img.shields.io/visual-studio-marketplace/stars/tombonnike.vscode-status-bar-format-toggle\" /\u003e\n\u003c/a\u003e\n\n\n# Formatting Toggle\n\nA VS Code extension that allows you to toggle your formatting settings ON and OFF with a simple click.\n\n## Installation\n\nIn the command palette (`CMD + SHIFT + P`) select “Install Extension” and choose “Formatting Toggle”.\n\n## Usage\n\nThe extension should show up on the right side of the status bar. Simply click it to toggle the formatting settings ON and OFF. Alternatively, in the command palette (`CMD + SHIFT + P`), run the “Toggle Formatting” command.\n\n⚠️ Formatting Toggle doesn’t override your workspace settings as these are usually tracked by Git. Consider using ignore configurations (like `.prettierignore`) to ignore specific files for all contributors of your project.\n\n## Customization\n\nBy default, Formatting Toggle toggles all formatting settings: `editor.formatOnPaste`, `editor.formatOnSave` and `editor.formatOnType`. To toggle different settings, or to prevent a specific setting from being toggled, you can use the `formattingToggle.affects` setting in your editor settings (Code › Preferences › Settings).\n\n💡 Formatting Toggle was created with formatting settings in mind but allows you to toggle any boolean setting that lives at the root of the VSCode configuration. `editor.codeActionsOnSave` is currently the only deeply nested setting supported.\n\nThe status bar text can also be customized via the `formattingToggle.statusBarText` setting. Values for `formattingEnabled` and `formattingDisabled` are distinct, and can include different codicons for each state. See [Product Icon Reference](https://code.visualstudio.com/api/references/icons-in-labels#icon-listing) for all options.\n\n### Examples\n\n#### Keeping `editor.formatOnPaste` and `editor.formatOnType` enabled at all times:\n\n```json\n{\n  \"editor.formatOnPaste\": true,\n  \"editor.formatOnType\": true,\n  \"formattingToggle.affects\": [\"editor.formatOnSave\"]\n}\n```\n\n#### Keeping `editor.formatOnType` disabled at all times:\n\n```json\n{\n  \"editor.formatOnType\": false,\n  \"formattingToggle.affects\": [\"editor.formatOnPaste\", \"editor.formatOnSave\"]\n}\n```\n\n#### Allowing `editor.codeActionsOnSave` to be toggled:\n\n```json\n{\n  \"formattingToggle.affects\": [\"editor.codeActionsOnSave.source.fixAll.eslint\"]\n}\n```\n\n#### Allowing all formatting settings to to be toggled (default):\n\n```json\n{\n  \"formattingToggle.affects\": [\n    \"editor.formatOnPaste\",\n    \"editor.formatOnSave\",\n    \"editor.formatOnType\"\n  ]\n}\n```\n\n#### Customizing the status bar text:\n\n```json\n{\n  \"formattingToggle.statusBarText\": {\n    \"formattingEnabled\": \"On $(heart-filled)\",\n    \"formattingDisabled\": \"Off $(heart)\"\n  },\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTom-Bonnike%2Fvscode-formatting-toggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTom-Bonnike%2Fvscode-formatting-toggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTom-Bonnike%2Fvscode-formatting-toggle/lists"}