CS-WIKI101
Loading...
Searching...
No Matches
wsublime

Python w/ Sublime Text

NOTE Tested on macOS Sonoma 14.0

These instructions are specifically tailored for students in CS111, DS223 and other courses that use Python. The steps in this guide will help you install Python and Sublime Text on macOS.

Table of Contents

Step 1: Install Python

NOTE If you already have Python installed, you can skip these steps.

Follow the instructions provided in the README to install Python on macOS.

Step 2. Install Sublime Text

Sublime Text is a lightweight yet powerful source code editor. Follow the steps below to download and install Sublime Text on macOS:

  1. Go to the Sublime Text website at https://www.sublimetext.com.
  2. Click on the DOWNLOAD FOR MAC button.

  3. After the download is complete, open Finder and navigate to the Downloads folder.
  4. Locate the Sublime Text.app file in the Downloads folder.

  5. Drag and drop the Sublime Text.app file from the Downloads folder to the Applications folder.
  6. This will install Sublime Text on your macOS.

Once the installation is complete, you can launch Sublime Text from your Applications folder , Launchpad or by typing subl in the terminal and start using it for your programming tasks.

Step 3. Add the subl command to the PATH

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:

echo 'export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"' >> ~/.bash_profile

ZSH

If using Zsh, the default starting with macOS 10.15, the following command will add the bin folder to the PATH environment variable:

echo 'export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"' >> ~/.zprofile

References

Source Description
Sublime Text Documentation Official documentation for Sublime Text
Command line How to add Sublime Text to the PATH

Need assistance? Check out my discussion board or review the GitHub status page.

© 2023 AppleBoiy • Code of Conduct • [MIT License](LICENSE)

Back to Top