python yaml.dump bad indentation

This ticket suggests the current implementation correctly follows the spec: The “-”, “?” and “:” characters used to denote block collection entries are perceived by people to be part of the indentation. This is handled on a case-by-case basis by the relevant productions. On the same thread, there is also this code snippet (modified to … Read more

How do I autoindent in Netbeans?

Shortcut: Windows: Alt+Shift+F Mac OS X: Ctrl+Shift+F (note: it’s Ctrl and not ⌘) On using above shortcut, NetBeans indents your selection. If nothing’s selected, it indents the whole file. You can even format multiple files/folders at a time! In the Projects window/sidebar, if you select one or more folders or files and use the shortcut, … Read more