CONNECT ON INSTAGRAM: FULL COURSE PLAYLIST: DO. Sublime Text 3 is the current version of Sublime Text. For bleeding-edge releases, see the dev builds. Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use. There is currently no enforced time limit for the evaluation.
Setup
Some operating systems and installation methods will require a configuration change to make subl available on the PATH.
Windows
On Windows, the command line helper is subl.exe. To use this from the Command Prompt or Powershell, the Sublime Text installation folder needs to be added to the Path environment variable:
Windows 10
Show instructions for: Windows 8, Windows 7- Open the Start Menu and type environ
- Select the item Edit the system environment variables
- Click the button Environment Variables at the bottom of the System Properties dialog
- Select, or create, the
Pathenvironment variable in the appropriate section:- For the current user, select
Pathin the User variables for {username} section - For all users, select
Pathin the System variables section
- For the current user, select
- Click the New button and add an entry with the Sublime Text installation directory
- 64bit installs are typically in C:Program FilesSublime Text
- 32bit installs on a 64bit version of Windows will be in C:Program Files (x86)Sublime Text
- 32bit installs on a 32bit version of Windows will be in C:Program FilesSublime Text
Windows 8
Show instructions for: Windows 10, Windows 7- Press the Windows Key and type environ
- Select the item Edit the system environment variables
- Click the button Environment Variables at the bottom of the System Properties dialog
- Select, or create, the
Pathenvironment variable in the appropriate section:- For the current user, select
Pathin the User variables for {username} section - For all users, select
Pathin the System variables section
- For the current user, select
- In the Variable value input, add an entry with the Sublime Text installation directory. If there is an existing value, add a
;before the Sublime Text directory.- 64bit installs are typically in C:Program FilesSublime Text
- 32bit installs on a 64bit version of Windows will be in C:Program Files (x86)Sublime Text
- 32bit installs on a 32bit version of Windows will be in C:Program FilesSublime Text
Sublime Text C++ Code Completion
Windows 7
Show instructions for: Windows 10, Windows 8- Open the Start Menu
- Right-click on Computer and select Properties
- Click on Advanced System Settings in the left-hand sidebar
- Click the button Environment Variables at the bottom of the System Properties dialog
- Select, or create, the
Pathenvironment variable in the appropriate section:- For the current user, select
Pathin the User variables for {username} section - For all users, select
Pathin the System variables section
- For the current user, select
- In the Variable value input, add an entry with the Sublime Text installation directory. If there is an existing value, add a
;before the Sublime Text directory.- 64bit installs are typically in C:Program FilesSublime Text
- 32bit installs on a 64bit version of Windows will be in C:Program Files (x86)Sublime Text
- 32bit installs on a 32bit version of Windows will be in C:Program FilesSublime Text
Mac
To use subl, the Sublime Text bin folder needs to be added to the path. For a typical installation of Sublime Text, this will be located at /Applications/Sublime Text.app/Contents/SharedSupport/bin.
Bash
If using Bash, the default before macOS 10.15, the following command will add the bin folder to the PATH environment variable:
Zsh
Sublime Text C++ Debug
If using Zsh, the default starting with macOS 10.15, the following command will add the bin folder to the PATH environment variable:
Linux
If Sublime Text is installed via one of the Linux Package Manager Repositories or a package, a subl symlink will automatically be installed into the /usr/bin/ directory.
If installing from a tarball, the sublime_text executable should be symlinked to subl, with a command such as:
Mac Sublime Text 3 C++ 配置
The exact details of the symlink command will depend on the installation location. Most default PATH environment variable values should contain /usr/local/bin, so no further commands should be necessary.