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

Platform​Settings

by quarnster ALL

A Sublime Text 2 plugin enabling platform specific settings

Details

  • 2015.06.05.16.41.10
  • github.​com
  • 9 years ago
  • 1 hour ago
  • 11 years ago

Installs

  • Total 2K
  • Win 851
  • Mac 522
  • Linux 360
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 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 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 0 0 0
Mac 0 0 0 1 0 1 0 0 0 0 0 1 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 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Description

This is a Sublime Text 2 plugin enabling platform specific settings.

Installation

  • The easiest way to install PlatformSettings is via the excellent Package Control Plugin
    1. See the Package Control Installation Instructions
    2. Once package control has been installed, bring up the command palette (cmd+shift+P or ctrl+shift+P)
    3. Type Install and select “Package Control: Install Package”
    4. Select PlatformSettings from the list. Package Control will keep it automatically updated for you
  • If you don't want to use package control, you can manually install it
    1. Go to your packages directory and type:
    2. git clone https://github.com/quarnster/PlatformSettings

Usage

Add a key to your settings dictionary like the following:

"osx":
{
    "font_size": 12.0
},
"linux":
{
    "font_size": 10.0
},
"windows":
{
    "font_size": 8.0
}

Each setting in the platform specific dictionary will be applied to your views if they are different from what is currently set.

You can also specify which keys you want to apply (and in what order) to your settings:

"platform_settings_keys": ["${platform}", "user_${platform}"]

This is the default setting, so if you are using OS X the dictionary with the name “osx” will be loaded and then updated with the settings from the dictionary with the name “user_osx” before being applied to your views.