Supports Windows OS
To add the above build systems to your Sublime Text environment, follow these steps:
-
Press the
Ctrl+Shift+p
command to open the Command Palette. -
Type "New build" and choose the option
"Build: New Build System"
. -
Copy the code for a particular programming language and paste it into the
<name-of-prog-language>.sublime-build
file. -
Congratulations! The new Sublime build system is now ready to run and compile the program.
-
Clone the repository into local directory.
-
Choose a build system file for a particular programming language.
-
Paste the file at the path where other Sublime Text user packages are saved.
-
On a Windows PC, the path will look like this:
C:\Users\<username>\AppData\Roaming\Sublime Text\Packages\User
. -
Congratulations! The new Sublime build system will now appear alongside other preset Sublime build systems.
-
Press the key shortcut command
Ctrl+b
to compile the file. -
Select one of the build systems you recently added to the list.
-
Run the program!
Alternatively
-
Click on the "Tools" button in the menu bar.
-
Select the "Build System" option from the "Tools" menu.
-
Choose one of the builds for the particular programming language your code is written in.
-
Run the program using the shortcut command Ctrl+B, which activates the build system for the programming language.
Supports macOS, Windows, or Linux
Every developer needs settings that suit their practical thinking and provide a focused environment. This helps them design functional and efficient code. I am sharing a file of Sublime preferences for day-to-day coding. We can choose any preferences based on which settings are more practical.
To access the preferences, follow below steps -
-
Click on the "Preferences" button in the menu bar.
-
Select the "Settings" option from the "Preferences" menu.
-
The above step opens a side-by-side window. Most likely, on your system, the default Sublime settings will be on the left-hand side. To add custom settings, you can edit them in the window on the right-hand side.
-
Copy and paste preferences into your
Preferences.sublime-settings
file to replicate the settings. -
Congratulations! You have successfully added the custom settings to your Sublime environment.
Supports macOS, Windows, or Linux
To modify colors or more specifically theme and color scheme of sublime-text, follow below steps -
- Click on the "Preferences" button in the menu bar.
a. Click on Select Color Scheme
and choose Mariana
.
b. Click on Select Theme
and choose Default Dark
.
c. Select Customize Color Scheme
in Sublime text, and paste the settings from Mariana.sublime-color-scheme present inside Colors folder
d. Select Customize Theme
in Sublime text, and paste the settings from Default Dark.sublime-theme present inside Colors folder
- Congratulations! You have successfully added the custom settings to your Sublime environment.