ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Setting​Switcher

by halfmoonvic ST3

No description provided

Details

Installs

  • Total 32
  • Win 18
  • Mac 10
  • Linux 4
May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6
Windows 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SettingSwitcher

A Sublime Text plugin that enables quick switching between different setting configurations.

Features

  • Switch multiple plugin settings with a single command
  • Dynamically generated command palette entries
  • Easy configuration through a single settings file

Installation

  1. Clone or download git repo into your packages folder
  2. Using Package Control: Run “Package Control: Install Package” command, and find SettingSwitcher package

Configuration

Create a SettingSwitcher.sublime-settings file in your User package directory with your desired configurations:

{
    "light": {
        // set Preferences.sublime-settings
        "Preferences": {
            "color_scheme": "Breakers.sublime-color-scheme",
            "font_size": 14
        },
        // set Markdown.sublime-settings for Markdown plugin
        "Markdown": {
            "color_scheme": "MarkdownEditor-ArcDark.sublime-color-scheme"
        }
    },
    "dark": {
        "Preferences": {
            "color_scheme": "Mariana.sublime-color-scheme",
            "font_size": 14
        },
        "Markdown": {
            "color_scheme": "MarkdownEditor.sublime-color-scheme"
        }
    }
}

Usage

  1. Open the command palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Type “setting_switcher: switch to” and select your desired configuration, like “switch to light” or “switch to dark”
  3. The plugin will automatically update all settings defined in that configuration

Keyboard Shortcuts

You can set keyboard shortcuts by creating or editing your key bindings file:

// Preferences -> Key Bindings (User)
[
    {
        "keys": ["your_preferred_shortcut"],
        "command": "setting_switcher",
        "args": { "command_type": "light" }
    },
    {
        "keys": ["your_preferred_shortcut"],
        "command": "setting_switcher",
        "args": { "command_type": "dark" }
    }
]

How It Works

The plugin loads configurations from SettingSwitcher.sublime-settings on startup and creates command palette entries for each configuration. When a switch command is executed, it updates the settings of all specified packages according to the selected configuration.

License

MIT License