Sublime Text : The text editor you'll fall in love with
Sublime Text is a sophisticated text editor for code, markup and prose. You'll love the slick user interface, extraordinary features and amazing performance. gedit has its own benefits : It comes by-default in Ubuntu, and its the first experience a novice gets of a text editor in Linux probably(no offense to anyone :P). But by time, you might get bored by the simpicity, and might need a beautiful and a little intelligent code editor. If that is the case, SublimeText is just for you!
Installation :
- As usual, you can go to
www.sublimetext.com
, and download the package suitable for your system : either a .deb for direct installation using apt or a .tar.bz2 file, which you can than extract and follow the instructions in the README. - or, you can proceed via terminal as follows -
(this askubuntu answer is very helpful!)
For Sublime-Text-3:
However, I am still not satisfied, since I am not able to run it using terminal, like I used gedit to. Unfortunately, Installation of ST doesn't automatically create the symbolic Link. So? We create a symbolic link for it.
For recent versions of Ubuntu and the latest SublimeText 3, the installation directory has changed slightly. We now find it sublime_text inside /opt/sublime_text instead of /opt/sublime. Hence the following command in terminal will do -
(If this doesn't work for you, you might wanna change /opt/sublime_text to /opt/sublime.)
Now I can edit any file using SublimeText by issuing command from terminal as subl mycode.java
Cheers!