Rick Yagodich created NETBEANS-6271:
---------------------------------------
Summary: Yaml code formatting does not respect Formatting
configuration
Key: NETBEANS-6271
URL: https://issues.apache.org/jira/browse/NETBEANS-6271
Project: NetBeans
Issue Type: Bug
Affects Versions: 12.5
Environment: NB12.6
Java 17
Windows 10
Reporter: Rick Yagodich
(Affected version should be 12.6, but option is not available.)
I changed my default formatting to use tabs instead of spaces (to create
smaller files, primarily), through Options > Editor > Formatting > All
Languages, unchecking Expand Tabs to Spaces and setting spaces per indent and
Tab Size to 3.
For Yaml, as with all others, Use All Languages Settings is checked.
When indenting my application.yml file, the behaviour is messy.
* Hitting return - adding a new auto-indented line - the indent is in spaces,
not tabs
* Using tab key, new tab _and all exising tabs_ in line are converted to spaces
* Selecting multiple lines and adjusting indent with tab, all lines' indents
converted to tabs (leaving any remainder of spce count as spaces; a 4-space
indent with my config, further indented would become 2 tabs + 1 space) _except_
the last-selected line, where all tabs are converted to spaces.
* Selecting multiple lines and decreasing indent (Shift-Tab), all lines
including the last converted to tabs.
Due to code validation in Yaml, the chaos of some lines being tab-indented and
some being space-indented results in much of the file showing errors.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists