Netbeans CSS auto format

Marco Lackovic picture Marco Lackovic · Apr 12, 2011 · Viewed 8.4k times · Source

In Netbeans 6.9.1 (PHP bundle) the code format (ALT+SHIFT+F) doesn't seem to work on CSS files, that is when I try to run it nothing happens. Is it normal or am I missing something?

Answer

Tom Gillard picture Tom Gillard · Sep 12, 2012

I've check it in my version of Neatbeans (Also 6.9.1) and it seems to work fine.

If it's not working for you, perhaps you need to check your Keymap settings.

To do so,

  1. click Tools

  2. Choose Options

  3. Select the Keymap tab

  4. Perform the Alt+Shift+F keymap in the "Search in shortcuts" input field

  5. Make sure you get the following:

    Actions = Format
    
    Shortcut = Alt+Shift+F
    
    Category = Source
    

Also check that your tabs and indents are setup in the Formatting tab under the Editor Section of the Options panel.

Hope that helps, Tom