CSS Controls
Speed up your CSS workflow with buttons & shortcuts for speedy CSS/Tailwind adjustments.

- Buttons appear above the current line when a supported CSS/Tailwind value is detected.
- ▲▼ - Increment/decrement the targeted value.
- x1 - Cycle between 0.1x, 1x, and 10x step sizes (for numeric values).
- ? - Opens the CSS Controls extension page in your editor so you can view docs, tweak settings, or disable it.
Keyboard Shortcuts
The buttons are just a marketing ploy... the shortcuts are where the real magic happens ♡
| Shortcut |
Command |
Ctrl+Up |
Increment nearest supported value |
Ctrl+Down |
Decrement nearest supported value |
Ctrl+Shift+Up |
Increase step size |
Ctrl+Shift+Down |
Decrease step size |
Ctrl+Shift+Right |
Jump to next value within current line |
Ctrl+Shift+Left |
Jump to previous value within current line |
Supported Value Types
CSS Controls focuses on supported values near your cursor and adjusts whichever one is closest on the current line.
Today, the extension supports:
- Numeric values in CSS properties and Tailwind classes (e.g.
margin: 8px;, mt-4, gap-2.5).
- Flexbox alignment values for:
justify-content: flex-start, flex-end, center, space-between, space-around, space-evenly, stretch
align-items: flex-start, flex-end, center, baseline, stretch
align-self: auto, flex-start, flex-end, center, baseline, stretch
Cycling uses the same inline ▲▼ buttons and the Ctrl+Up / Ctrl+Down shortcuts. The nearest supported value to your cursor is adjusted, regardless of whether it is a number or one of the supported property values.
More value types are planned. As support is expanded, new value kinds will automatically plug into the same buttons and shortcuts.
Note about conflicts:
You can always reassign the shortcuts to your liking or disable them altogether.
The shortcuts only activate when the extension activates. i.e. you are editing a CSS, SCSS, Less, HTML, JSX, or TSX file and your cursor is positioned on a line that contains at least one supported value. This way they minimize conflicts with existing shortcuts.
Configuration
To quickly toggle the extension on/off, you can either:
- Run
CSS Controls: Toggle Enabled from the Command Palette.
- Open Settings and turn CSS Controls › Enabled off (
css-controls.enabled).
If you just want the keyboard shortcuts and not the inline buttons:
- Run
CSS Controls: Toggle Inline Buttons from the Command Palette.
- Open Settings and turn CSS Controls › Enable Inline Buttons off (
css-controls.enableInlineButtons).
Supported File Types
- CSS
- SCSS
- Less
- HTML (with Tailwind classes)
- JSX/TSX (with Tailwind classes)
Requirements
VS Code or Cursor.
Feedback
Feel free to reach out with any questions, feedback, or suggestions.
Authors
Made with ❤️ by Rio Edwards