How to view terminal color codes as colors in Sublime Text
Install the SublimeANSI plugin and change the syntax of your log file to ANSI (using the View -> Syntax menu.) Also available as ANSIescape on Package Control.
Install the SublimeANSI plugin and change the syntax of your log file to ANSI (using the View -> Syntax menu.) Also available as ANSIescape on Package Control.
After a little hunting around together with Mikko’s suggestion of looking at the change log: In Settings-User opened from Preferences | Settings add in the line “highlight_modified_tabs”: true, This will make the tab text orange whenever there are unsaved changes to a file. To change the color from orange, a bit of further digging around … Read more
If I understand your question correctly, you want to select multiple lines and create a cursor at the end of each line. There are a couple ways you can achieve this: Using Split Into Lines Highlight multiple lines however you like. Use the Selection|Split Into Lines command (Cmd+Shift+L on OS X or press Cmd/Ctrl+Shift+P and … Read more
A similar option in Sublime Text is the built in Edit->Line->Reindent. You can put this code in Preferences -> Key Bindings User: { “keys”: [“alt+shift+f”], “command”: “reindent”} I use alt+shift+f because I’m a Netbeans user. To format your code, select all by pressing ctrl+a and “your key combination”. Excuse me for my bad english. Or … Read more
Custom snippets are saved in a .sublime-snippet file that you create when you first save the snippet. By default, these are placed in the “User” package. You can either browse to the file like you would any other file, or using PackageResourceViewer: Open Resource -> User -> [name of your snippet file]
Sublime Text 3 stores its packages in .sublime-package zip files (the location varies by OS), so unlike ST2 you can’t just go to the Packages folder and see everything. However, there is an excellent plugin called PackageResourceViewer (available via Package Control) that can, among other things, extract files or whole packages to the Packages directory. … Read more
Sublime 3 is the answer! It has a goto_definition function build in which works fine as long as you have a project with your source folder added (so that they can get indexed). I use it with scala+lift, PHP, Python. Per default it is bound to F12 and without project setup it searches only in … Read more
I created a quick-and-dirty plugin, sublime-gitignorer, to solve exactly this problem. It is currently tested on Ubuntu and Windows in Sublime Text 2 and 3. I expect it will also work on any other Linux distro or on Mac. To install, assuming you have package control, just: Press CTRL+SHIFT+P (CMD+SHIFT+P on Mac) Select “Install Package” … Read more
You can use the Goto Anything feature (Ctrl+P on Windows and Linux, Cmd+P on macOS) and type the name of the file you’re looking for. If there are multiple hits, you can select the appropriate file using cursor keys. It also supports powerful operators, that let you jump to specific parts inside a file. Examples: … Read more
Open Sublime Text. Select Preferences from the top menu and click Key Bindings – User. Here you will see a JSON file that should contain an array of objects (initially the array is empty). Every object will represent a shortcut. Add the following (new shortcut object) entry into the array (between the brackets): { “keys” … Read more