

By default, this is set to "expand".įormat_on_save_filter: CSS Format matches the name of the file being saved against this regular expression to determine if a build should be triggered. By default, this is set to false.įormat_on_save_action: Format action. By default, this is set to "\n\n".įormat_on_save: Set to true to trigger format on save. By default, this is set to "\t"Įxpand_block_break: Set the line breaks after each rules block under Expanded format. Indentation: Format indentation, you can set it to " ". ALWAYS edit the user settings by selecting Preferences > Package Settings > CSS Format > Settings - User. Your changes will be lost when CSS Format is updated. For the latest information on what options are available, select the menu item Preferences > Package Settings > CSS Format > Settings - Default.ĭO NOT edit the default settings. There are a number of configuration options available to customize the behavior on save.
#Css formatter online how to
Select the code, or place cursor in the document, and execute commands in one of the following ways:Ĭommand Panel: Open command panel: Ctrl+Shift+P (Linux/Windows) or Cmd+Shift+P (OS X) and select Format CSS: XXX.īy default, CSS Format provides no keyboard shortcuts to avoid conflicts, but you can read the included Example.sublime-keymaps file to get an idea how to set up your own.

~/Library/Application Support/Sublime Text 2/Packages/ĭownload the latest source zip from Github and extract it into a new folder named CSS Format in your Sublime Text “Packages” folder. You can find your “Packages” inside the following directories: Git clone git:///mutian/Sublime-CSS-Format.git "CSS Format"
