![]() ![]() I'm using CTRL+ ALT+ 2, you can change this shortcut key whatever you want to. ![]() (The package controller will show the status of the installation with success and errors on the bottom left bar of Sublime)Īdd the following line to your key bindings ( Preferences -> Key Bindings User) Then type js format and hit ENTER, you're done. You can easily install JsFormat with using Package Control ( Preferences -> Package Control) Open package control then type install, hit ENTER. You can select all your code( CTRL+ A) and use the in-app functionality, reindent( Edit -> Line -> Reindent) or you can use JsFormat formatting plugin for Sublime Text 2 if you would like to have more customizable settings on how to format your code to addition to the Sublime Text's default tab/indent settings. Lots of great features, not much to complain about.Īltough the question is for HTML, I would also additionally like to give info about how to auto-format your Javascript code for Sublime Text 2 HTML-CSS-JS Prettify is the winner in my book. Thes phpbeautifier for Sublime is exhausting. Although I havent used CodeFormatter for very long, I have been impressed with its JS, HTML, and CSS 'beautifying' capabilities. The tool validates any HTML code, including CSS and JavaScript embedded in a page. Service Benefits This is the best free formatter with advanced settings. Does not expand minimized or compressed code Sublime CodeFormatter has formatting support for PHP, JavaScript/JSON/JSONP, HTML, CSS, Python. The formatter helps to quickly see errors in the HTML structure, fix them and make unreadable code beautiful again.Requires PHP (falls back to web service).Can't handle minified HTML, lines with multiple open tags. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |