Learn How to Use Sublime Text: A Quick Overview

Little figures around a big monitor learning Sublime Text

Sublime Text is one of the most popular text editors in the world. It’s jam-packed with powerful features like multi-line editing, build systems for dozens of programming languages, regex find and replace, a Python API for developing plugins, and more.

Best of all, it’s cross-platform (Mac, Windows, and Linux), and it’s distributed as “shareware,” which means it’s free to use with the occasional purchase pop-up.

In this article, you’ll learn how to use Sublime Text to fulfill all your text and code editing needs!

What Is Sublime Text?

Sublime Text bills itself as a “sophisticated text editor for code, markup, and prose.” Originally released over a decade ago in January 2008, Sublime Text is now in its fourth major version and supports Mac, Windows, and Linux.

At its core, Sublime Text is akin to a Swiss Army knife that can be applied to any use case or problem involving manipulating Text.

At first glance, Sublime Text may appear to be a text editor that’s only useful to developers. While it is a great tool for developers, it’s also a powerful app for writers and bloggers.

Before we dive into all the features and capabilities of Sublime Text, let’s quickly walk through a few scenarios where Sublime Text may be useful.

Regex Find and Replace

Regex, short for regular expression, is a syntax for specifying search patterns. Regex is often used to locate similar (but different) text strings for text editing.

For example, if you wanted to strip all HTML tags from a document, it would be very time-intensive to search for each tag to delete (e.g. <h1>, <p>, <span>, etc.).

Instead, you can perform the search with a single regex pattern. In this case, the regex pattern [a-zA-Z0-9] can be used to find all the HTML tags in a document.

Find and replace text in Sublime Text.

Performing a regex find and replace is very simple in Sublime Text. In the menu bar, click Find > Find in Files. Next, enable regex mode in the find and replace menu, specify the regex pattern in the “Find” field, select <current file>, and click Find or Replace depending on what you need to accomplish.

Sublime Text is one of the most popular text editors in the world, and it’s jam-packed with powerful features — learn more in this guide ⬇️Click to Tweet

Quickly Run Code

Unlike traditional text editors, Sublime Text lets you run code directly within the app. This is especially useful for simpler projects like small Bash or Python scripts.

For example, if you’re writing a simple Python script to scrape data from a list of URLs, setting up a separate Terminal to debug code is less convenient than running the script directly in Sublime Text.



This article was written by Brian Li and originally published on Blog – Kinsta®.

Disclosure: Some of the links in this post are "affiliate links." This means if you click on the link and purchase the product, We may receive an affiliate commission.

Leave a Comment

You have to agree to the comment policy.

Show Your ❤️ Love! Like Us
Scroll to Top