Sublime is Sublime 2

Now we are into the second post about how Sublime is Sublime. In the last post we looked at some reasons why we may want to use Sublime. In this post we will install Sublime and learn some basics of how to get around the editor.

We will install Sublime 2 (not sublime 3 though much in sublime 3 is similar in sublime 2). Installing Sublime is quite easy. In ubuntu you can just use:

Sublime can be installed for your platform from http://www.sublimetext.com/2

Once installed run sublime. You should get a boring looking window. Sublime is just a basic code editor that supports syntax highlighting etc. Some useful keystrokes that you should know

https://gist.github.com/eteanga/1736542 contains a bunch of useful keystrokes you should become familiar with. Some of the most important are:

ctrl+p goto anything
ctrl+shift+p command prompt
ctrl+g goto line
ctrl+r goto symbol in file
alt+shift+2 make 2 columns
alt+shift+1 back to 1 column
ctrl+1 focus on 1
ctrl+2 focus on 2
ctrl+shift+1 move file to 1
ctrl+shift+2 move file to 2
f11 full screen
shift+f11 distraction free mode
ctrl+kb toggle side bar (explorer)

Generally when working with a set of code you load the root folder into sublime (file->open folder) you can then view the structure in the side bar to navigate around files.

Some things you should try:

Preferences->Color Scheme
View->Syntax (put on C# if its not already!)

Try opening up some code in Sublime. Try navigating around your code. Switching between column views. Definitely check out distraction free mode.

You will notice that you will have some troubles. Adding a file for instance really sucks as you have to manually edit a project file. How do you build? What about running unit tests? We will get to all of these things and more in the next few posts.

This entry was posted in Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>