Top features you need to know about

Exclusive offer: get 50% off this eBook here
Instant Sublime Text Starter [Instant]

Instant Sublime Text Starter [Instant] — Save 50%

Learn to efficiently author software, blog posts, or any other text with Sublime Text 2 with this book and ebook.

$9.99    $5.00
by Eric Haughee | May 2013 | Open Source

At its core, Sublime Text 2 is a text editor. However, there are many features that make it stand out from the rest of the pack.

In this article by Eric Haughee, author of Getting Started with Oracle Event Processing 11g,we will learn about the minimap, multiple cursors,

(For more resources related to this topic, see here.)

1 – Minimap

The minimap is an innovative feature of Sublime Text 2 that gives you a bird's-eye view of the document you are editing. Always present at the right-hand side of the editor, it allows you to quickly look at a live, updated, zoomed out version of your current document. While the text will rarely be distinguishable, it allows for a topographical view of your document structure.

The minimap feature is also very useful for navigating a large document as it can behave similar to a scroll bar. When clicked on, the minimap can be used to scroll the document to a different portion.

However, should you find yourself not needing the minimap, or need the screen real estate it inhabits, it can easily be hidden by using the Menu bar to select View | Hide Minimap.

2 – Multiple cursors

Another way Sublime Text 2 differentiates itself from the crowded text editor market is by way of including the functionality that allows the user to edit a document in multiple places at the same time. This can be very useful when making an identical change in multiple places. It is especially useful when the change that needs to occur cannot be easily accomplished with find and replace. By pressing command + left-click on OS X, or Ctrl + left-click on other platforms, an additional cursor will be placed at the location of the click. Each additional cursor will mirror the original cursor.

The following screenshot shows a demo of this functionality. First, I created cursors on each of my three lines of text. Then I proceeded to type test without quotes:

Now, as shown in the following screenshot, anything typed will be typed identically on the three lines where the cursors are placed. In this case I typed a space followed by the word test. This addition was simultaneous and I only had to make the change once, after creating the additional cursors.

To return to a single cursor, simply press Esc or left-click anywhere on the document.

Summary

This article covered a few few features of Sublime Text 2 including multiple cursors, a plugin system, and a few others which will be covered in this article.

Resources for Article :


Further resources on this subject:


Instant Sublime Text Starter [Instant] Learn to efficiently author software, blog posts, or any other text with Sublime Text 2 with this book and ebook.
Published: January 2013
eBook Price: $9.99
See more
Select your format and quantity:

About the Author :


Eric Haughee

Eric Haughee is a recent graduate from the University of Tennessee at Chattanooga where he received a Bachelor's degree in Computer Science with a concentration in Application Design. During his time in college, he worked as an intern with companies doing .NET development, PHP development on the LAMP stack, and .NET Pocket PC development. Throughout this time, Eric worked as a contractor using technologies such as PHP and jQuery mobile. Upon graduating, he took a position at JP Morgan Chase as an Application Developer and currently works with .NET technologies. Outside of work, Eric dabbles in Ruby, Python, and other technologies for web and application development. He currently resides in Philadelphia, PA.

Books From Packt


Microsoft Silverlight 4 Data and Services Cookbook
Microsoft Silverlight 4 Data and Services Cookbook

TextMate How-To [Instant]
TextMate How-To [Instant]

Python 2.6 Text Processing: Beginners Guide
Python 2.6 Text Processing: Beginners Guide

Hacking Vim 7.2
Hacking Vim 7.2

Python Text Processing with NLTK 2.0 Cookbook
Python Text Processing with NLTK 2.0 Cookbook

Open Text Metastorm ProVision® 6.2 Strategy Implementation
Open Text Metastorm ProVision® 6.2 Strategy Implementation

Python Testing: Beginner's Guide
Python Testing: Beginner's Guide

Hacking Vim: A Cookbook to get the Most out of the Latest Vim Editor
Hacking Vim: A Cookbook to get the Most out of the Latest Vim Editor


No votes yet

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
i
m
y
y
W
V
Enter the code without spaces and pay attention to upper/lower case.
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software