Skip to content

qol-tools/conditional-format

Repository files navigation

Conditional Format

VS Code extension that formats selection or entire document with a single keybind.

Features

  • Formats selected code when text is selected
  • Formats entire document when nothing is selected
  • Works with all VS Code formatters

Usage

Press Ctrl+K Ctrl+D (Windows/Linux) or Cmd+K Cmd+D (macOS) to format.

Change Keybind

  1. Open Preferences → Keyboard Shortcuts
  2. Search for conditionalFormat.format
  3. Assign your preferred keybind

Installation

Install from the VS Code Marketplace or search "Conditional Format" in VS Code extensions.

License

MIT

About

Format selection or entire document with a single keybind

Topics

Resources

Stars

Watchers

Forks