Z
Z
ZaiSL2012-07-16 06:48:50
Sublime Text
ZaiSL, 2012-07-16 06:48:50

Sublime Text 2. How to format HTML/CSS/JS?

Now I use:

  • JsFormat
  • SublimeHTMLPrettify


Nothing has been found for CSS formatting.
What plugins would you recommend to use to bring beauty to the code?

Answer the question

In order to leave comments, you need to log in

9 answer(s)
L
lostuser, 2012-08-17
@lostuser

csstidy + needs to be finished by adding a keyboard shortcut to user key bindings

{ "keys": ["ctrl+t"], "command": "css_tidy" }

G
Genome_X, 2012-07-16
@Genome_X

Hmmm, what's wrong with that? The CSS format is selected and that's it, the syntax is highlighted, the indents are made, what else is needed? Or am I not understanding something?

D
Dmitry Shvalyov, 2012-07-16
@dshster

csscomb.ru can be used to format styles, and accordingly it has a plugin for sublim.

S
SilentImp, 2012-07-16
@SilentImp

zenCoding for writing csscomb code
to put rules in a specific order

A
Alex Belov, 2012-07-17
@Roosso

I format CSS with TopStyle . It even allows you to configure a number of parameters by which the style will be formatted.
I don't format jQuery with JSMin plugin for Notepad++
PHP, so I can't help.

V
Viktor Suzdalev, 2014-01-16
@Kadmil

Found a wonderful Html-css-js-prettify plugin ( https://github.com/victorporof/Sublime-HTMLPrettify ).

A
Alexey Fedosov, 2014-04-08
@Nauz

In Sublime Text 3, I use the Tag plugin to format HTML. Try it! There is also my video 10 plugins for Sublime Text 3 , there at 12:40 "I'm talking about it.

N
nwalker, 2012-07-16
@nwalker

there is a csslisible plugin just for this - github.com/thierrylemoulec/Sublime-Csslisible
but it is somehow broken now.

T
tmikwid, 2012-07-16
@tmikwid

For your case, there is such an online service: http://minify.avivo.si/ In it, choose beautify, select the CSS decompression settings and generate the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question