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

Env​Switcher

by SaschaMzH ALL

Switch between different environments within SublimeText.

Details

Installs

  • Total 757
  • Win 369
  • Mac 204
  • Linux 184
Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7
Windows 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 1 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 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 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

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.