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.
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.
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 :
- Building a Flex Type-Ahead Text Input [Article]
- Introduction to Data Binding [Article]
- Working with Binding data and UI elements in Silverlight 4 [Article]
About the Author :
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.