Sublime Text

Sublime Text is a cross-platform text and source code editor, with a Python application programming interface (API). Sublime Text is proprietary software (Sublime 2 has a free version) however it is worth to pay for Sublime Text. Its functionality is extensible with plugins. Most of the extending packages have free-software licenses and are community-built and maintained. The power of plugins and the ability of customization make the editor even more powerful.
Official Link


Command Palette
Command Palette is a quick search box for the available Sublime Text commands for the current context. Press Ctrl + Shift + P and search for the command; once you click on the command, it will get applied.

Goto Anything
To open Goto Anything, press Ctrl + P. As you type into the input area, names of open files and files in open directories will be searched, and a preview of the best match will be shown. This preview is transient; that is, it won’t become the actual active view until you perform some operation on it.

Goto Methods
Open Goto Anything by pressing Ctrl + P and type @ symbol. Then all the available methods in the opened class will be displayed and you can type the name of the method and goto that method. You can open the Goto Anything with a default @ prefix by pressing Ctrl + R.

Workspace Panes
Sometimes it is desired to open two or more files in Sublime and keep them visible all the time. To create a two columned workspace press Ctrl + Alt + 2 and drag and drop any tabs to the new column. In the same manner Ctrl + Alt + 3 and Ctrl + Alt + 4 divides the workspace into three and four columns respectively. If you need a grid of four cells press Ctrl + Alt + 5 and press Ctrl + Alt + 1 to return to the default single column view.

Multi Select
Press and hold the Ctrl key, and select multiple words by double clicking on the words. If you need to select the next occurrence of a specific word, select a word and then press Ctrl + D.


Package Control
This plugin keeps track of all other plugins of Sublime Text and let you to easily install them. Once you install the Sublime Text, the first plugin which you need to install is the Package Control.

Even though Sublime Text provides its own terminal, I prefer the native terminal to accomplish my tasks. This plugin lets you to open the Terminal in the location of currently opened file.

SublimeAStyleFormatter is a simple code formatter plugin for Sublime Text. It provides ability to format C, C++, Cuda-C++, OpenCL, Arduino, C#, and Java files.

Java Setter Getter
Writing Java getter and setter methods is one of the boring time in a Java developer’s life. Sometimes I used Eclipse for my university projects only to create the getter and setter methods automatically. This plugin enhance the Sublime Text to generate the getters and setters automatically for a selected property, but this plugin is available for Sublime Text 2 only; not for Sublime Text 3.

For Sublime Text 2/3 users there is another hack using Snippets.
1. Go to 'Tools  New Snippet' and replace the content of the opened document by the code given below.
private ${1:returnType} ${2:property};
public ${1:returnType} get${2/^(.)(.*)/\U$1\E$2/}() {
    return ${2:property};
public void set${2/^(.)(.*)/\U$1\E$2/}(${1:returnType} ${2:property}) {
    this.${2:property} = ${2:property};
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
2. Save the file in "../Packages/User/gettersetter.sublime-snippet".

3. Create a Java class.

4. Type property and hit Tab.

5. Type the return type first and hit Tab again.

6. Enter the variable name and press Tab to finish.
Credits to JGroovy and X Cooper
Build Ant Target
This is one of my favorite plugin which helped me to turn my Sublime Text nearly into an IDE. You need to create the Ant build file for your project and then whenever you want to execute any ANT tasks this plugin make it simple.

Sidebar Enhancements
If you want to work on a directory of files, then the sidebar is a helpful feature of Sublime Text. This plugin improves the sidebar by adding file operations like delete, move and copy, open with and more.

Adding Java documentation comment is made simple by this plugin. Not only for Java this plugin has support for JavaScript, PHP, ActionScript, Haxe, CoffeeScript, TypeScript, Groovy, Objective C, C, C++ and Rust.

I have been searching for a plugin to rename the files from Sublime Text, which I used in Notepad++. FileRename plugin enables that feature but there are no default shortcut for it. After the installation add the following key binding statement in "Preferences  Key Bindings - User".
 { "keys": ["f2"], "command": "file_rename" }
To rename an opened file, press F2 and enter the new name in the appeared dialog at the bottom. This plugin is only for Sublime Text 3. Sublime Text 2 users can use the Sidebar Enhancements plugin mentioned above, but you need to right click on the file and select rename.

Highlight Current Line
To highlight the current line, add the following statement to the "Preferences  Settings - User"
"highlight_line": true

Highlight Modified Tabs
To highlight the modified tabs, add the following statement to the "Preferences  Settings - User"
"highlight_modified_tabs": true

Disable Remember Open Files
By default, Sublime Text remembers the opened documents until you close them explicitly (You need to close all the tabs). To disable this feature add the following lines to "Preferences  Settings - User".
"hot_exit": false,
"remember_open_files": false

Theme Soda
I have tried so many themes and color schemes for Sublime Text, but Soda Theme with the combination of built in IDLE color scheme stops me from searching for themes and color schemes. This theme makes the Sublime Text even more lovable editor. It has both light and dark look and feel; choice is up to you.

Theme Primer
Theme Primer is my current theme that fits well with my Linux flat theme. Theme Primer with little line padding configuration gives an awesome look to Sub Lime.

Sublime Text Theme Prime

 "color_scheme": "Packages/Theme - Primer/primer.light.tmTheme",
 "font_size": 12,
 "line_padding_bottom": 3,
 "line_padding_top": 3,
 "overlay_scroll_bars": "enabled",
 "theme": "Primer.sublime-theme",
 "theme_primer_sidebar_font_large": true,
 "theme_primer_tab_active_purple": true,
 "theme_primer_tabs_font_large": true

This is not just an end of this article. Sublime Text and its plugins are continuously evolving and new features are getting introduced day by day. Whenever I found a new plugin or a hidden feature that is worth to share, I will update this article. Enjoy your new editor...
Next Post »

Contact Form


Email *

Message *