Sublime Text: Remove Empty Lines

If you try to figure out how to remove the blank lines in a document, i.e. the lines that contain only spaces, tabs or the newline characters, you should know that in almost any IDE, like a Sublime Text, this can de done really simple.

The Sublime Text, like the other IDEs, has the ability to delete empty lines in the “Replace” operation by using the “Regular expression”.

This short note shows how to remove empty lines in the Sublime Text. (more…)

Sublime: “Open Git Repository” Hotkey

To open a Sublime Merge from a Sublime Text it is required to open a context menu with the right-click and select the “Open Git Repository”.

By default, there is no a keyboard shortcut to open the Sublime Merge quickly, that is not very handy.

This short note shows how to create a key binding that permits to “Open Git Repository” in the Sublime Merge using a hotkey.

Cool Tip: How to add a newline at the EOF on save in Sublime Text! Read more →

“Open Git Repository” in Sublime Merge using Hotkey

In the Sublime Text, go to the PreferencesKey Bindings and in the right panel specify a keyboard shortcut for the sublime_merge_open_repo command, for example:

[
    // Open Git Repository in Sublime Merge
    { "keys": ["ctrl+alt+z"], "command": "sublime_merge_open_repo"}
]

Save with Ctrl + S and close the window with the key binding settings.

Now you can simply press the Ctrl + Alt + Z in the Sublime Text to open the current project in the Sublime Merge.

Sublime Text: Git Integration

Out of the box, Sublime Text has a quite limited integration with Git.

You can work with Git repositories in Sublime Text but for advanced features you should install additional software.

Complete integration of Sublime Text with Git can be achieved by installing Sublime Merge – a full-featured Git client built upon the technologies from Sublime Text.

In this note i will show how to integrate Sublime Text with Git. (more…)