Configuration

Configuration

Plainwind works great out of the box, but you can customize it to fit your workflow.

Settings

Access these settings via Preferences → Settings → Plainwind or by editing settings.json directly.

plainwind.enabled

Enable or disable the extension globally.

  • Type: boolean
  • Default: true
{
  "plainwind.enabled": false
}

plainwind.displayMode

Choose how translations appear in your editor.

  • Type: "codelens" | "hover" | "off"
  • Default: "codelens"
{
  "plainwind.displayMode": "hover"
}

codelens shows translations above className attributes
hover shows translations on hover only
off hides translations (extension stays active for quick re-enabling)

plainwind.groupByCategory

Organize translations by category (Layout, Spacing, Colors, etc.) or show them in source order.

  • Type: boolean
  • Default: true
{
  "plainwind.groupByCategory": false
}

When enabled:

Layout: flexbox, centers items
Spacing: padding 1rem

When disabled:

flexbox, centers items, padding 1rem

plainwind.showCategoryEmojis

Show emojis next to category names. Only works when groupByCategory is enabled.

  • Type: boolean
  • Default: false
{
  "plainwind.showCategoryEmojis": true
}

When enabled:

📦 Layout: flexbox container
↔️ Spacing: padding 1rem
🎨 Colors: blue background

Commands

Access these via command palette (⌘⇧P on macOS, Ctrl+Shift+P on Windows/Linux) or assign keyboard shortcuts.

CommandDescription
Show Options MenuQuick menu with all settings and options
Choose Display ModeSwitch between CodeLens, Hover, or Off
Toggle Extension On/OffEnable/disable Plainwind globally
Toggle for This FileEnable/disable for current file only
Disable for This FileDisable Plainwind for current file
Enable for This FileEnable Plainwind for current file
Toggle Group By CategoryToggle category grouping on/off
Toggle Category EmojisShow/hide emojis in category names
Toggle Visual Enhancements In Detail PanelToggle color, font, and spacing previews
Set CodeLens Truncation LengthAdjust when translations get truncated
Clear All Detail PanelsClose all open translation panels

Tip: Use Plainwind: Show Options Menu for quick access to the most common settings.

Keyboard Shortcuts

No shortcuts are assigned by default, but you can add them:

  1. Open Preferences → Keyboard Shortcuts
  2. Search for "Plainwind"
  3. Click the + icon next to a command
  4. Press your preferred key combination

Suggested shortcuts:

// macOS
{
  "key": "cmd+shift+t",
  "command": "plainwind.toggleForFile"
},
{
  "key": "cmd+shift+d",
  "command": "plainwind.chooseDisplayMode"
}
 
// Windows/Linux
{
  "key": "ctrl+shift+t",
  "command": "plainwind.toggleForFile"
},
{
  "key": "ctrl+shift+d",
  "command": "plainwind.chooseDisplayMode"
}

Per-Project Settings

You can override settings for specific projects using workspace settings. Just create a .vscode/settings.json file in your project:

{
  "plainwind.displayMode": "hover",
  "plainwind.groupByCategory": false
}

Workspace settings override your global user settings, so you can have different configurations for different projects.