Netbeans CSS auto format
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?开发者_运维百科
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,
click Tools
Choose Options
Select the Keymap tab
Perform the Alt+Shift+F keymap in the "Search in shortcuts" input field
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
(tested with Netbeans 12.0) You can use regular expressions to add newlines:
- press Ctrl+H or click Menu Edit -> Replace...
- Find What: "([{};])" (without quotes)
- activate regular expressions (button with caption .* or Alt+G)
- Replace With: "$1\n" (without quotes)
- Replace All
Then you can use Alt+Shift+F to auto-indent
精彩评论