Open Sublime Text from Terminal in macOS
In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 from the command line in macOS? 32 s 32
In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 from the command line in macOS? 32 s 32
How can I replace \n in Sublime Text with real in-editor displayed new line so: foo\nbar becomes: foo bar in the editor when I view the file in it. 12 s 12 Turn on Regex Search and Replace (icon most to the left in search and replace bar or shortcut Alt + R) Find What: … Read more
In Visual Studio I can press Ctrl+K+D to indent everything so the code is structured nicely and readable. Is there a shortcut in Sublime 2 to do the same? 20 s 20 You can find it in Edit → Line → Reindent, but it does not have a shortcut by default. You can add a … Read more
Is there a way to force Sublime Text 2 to always indent two spaces per tab when working with Ruby files? I know that indentation can be set under the view -> indentation menu option, but it does not stick. Every time I open a new file and hit tab, it reverts back to four … Read more
I’d like Sublime 2 editor to treat *.sbt files (to highlight syntax) as Scala language, same as *.scala, but I can’t find where to set this up. Do you happen to know? 6 s 6
How do I set a default filetype for a certain file extension in Sublime Text 2? Specifically I want to have *.cfg files default to having Ini syntax highlighting but I cannot seem to figure out how I could create this custom setting. 4 s 4
I’ve got some poorly-formatted HTML code that I’d like to reformat. Is there a command that will automatically reformat HTML code in Sublime Text 2 so it looks better and is easier to read? 1 16 You don’t need any plugins to do this. Just select all lines (CTRL+A) and then from the menu select … Read more