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

Env​Switcher

by SaschaMzH ALL

Switch between different environments within SublimeText.

Details

Installs

  • Total 722
  • Win 356
  • Mac 198
  • Linux 168
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 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4
Windows 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 0 0 0 0 0 0 0 0 0 0 0 1
Mac 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 0 0 0 0 0 0 0 0
Linux 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 2 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 0

Readme

Source
raw.​githubusercontent.​com

EnvSwitcher

A Plugin for SublimeText 3 to switch through different environment settings. This can be helpful whenever you want to use a special environment to build. With this plugin, it is possible to have different python version installed on your machin and use only one of these when you hit build in sublime text.

Installation:

Using Package Control (Recommended)

For all Sublime Text 3 users we recommend install via Package Control.

  1. Install Package Control if you haven't yet.
  2. Use cmd+shift+P (ctrl+shift+P on Windows) then Package Control: Install Package
  3. Look for EnvSwitcher and install it.

Manual Install

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages/ folder
  3. Download zip package rename it to EnvSwitcher.sublime-package and copy it into the Installed Packages/ directory
  4. Restart Sublime Text

Usage :

To configure :

Use cmd+shift+P (ctrl+shift+P on Windows) then EnvSwitcher: Settings - User to change the user settings and add new environments for you system.

For Example::

"envs":
    {
        "Python 3.5 with PyQt5":
        {
            "PATH": "C:\\Python\\3.5;C:\\Python\\3.5\\Lib\\site-packages\\PyQt5;%PATH%",
            "PYTHONPATH": "C:\\Python\\3.5\\Lib\\site-packages\\PyQt5;%PYTHONPATH%",
        },
        "Python 3.6 with PyQt5":
        {
            "PATH": "C:\\Python\\3.6;C:\\Python\\3.6\\Lib\\site-packages\\PyQt5;%PATH%",
            "PYTHONPATH": "C:\\Python\\3.6\\Lib\\site-packages\\PyQt5;%PYTHONPATH%",
        }
    }

To switch :

  • use cmd+shift+P (ctrl+shift+P on Windows) then EnvSwitcher: Choose Environment to show the list of your defined environments.
  • use cmd+alt+E (ctrl+alt+E on Windows) to show the list of your defined environments.

Support :

  • Any bugs about Markdown Preview please feel free to report here.
  • And you are welcome to fork and submit pullrequests.

License :

The code is available at github project under MIT licence.