![]() Open a HTML, CSS, JavaScript, JSON, React or Vue file, pop out the console in Sublime Text from View -> Show Console, and type n_command("htmlprettify"). Right click in the current buffer and select HTML/CSS/JS Prettify -> Prettify Code. Tools -> Command Palette ( Cmd Shift P or Ctrl Shift P) and type htmlprettify.Ĭtrl Shift H (or Cmd Shift H if you're on a Mac). Useful Sublime Text json packages - YouTube 0:00 / 2:51 Useful Sublime Text json packages 17,758 views In this video I show two libraries that make working. Git clone %APPDATA%/Sublime\ Text\ 3/Packages/Sublime-HTMLPrettify Usage Usage ctrl j on OS X or alt j on Linux/Windows If you would like to have JSHint run anytime you save a JavaScript file (highly suggest this), you will need to install the SublimeOnSaveBuild package. Select Package Control: Install Package, wait while Package Control fetches the latest package list, then select Formatter when the list appears. Git clone ~/.config/sublime-text-3/Packages/Sublime-HTMLPrettify Windows Once you install Package Control, restart Sublime Text and bring up the Command Palette ( Cmd Shift P on MacOSX, Ctrl Shift P on Linux/Windows). Git clone ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Sublime-HTMLPrettify Linux For example, on OS X, packages for version 2 are in ~/Library/Application\ Support/Sublime\ Text\ 2, while version 3 is labeled ~/Library/Application\ Support/Sublime\ Text\ 3. Make sure you use the right Sublime Text folder. You can use JsFormat JsFormat is a JavaScript formatting plugin. type prettify, select HTML-CSS-JS Prettify Automatic Code Linting
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |