[ 
https://issues.apache.org/jira/browse/NETBEANS-6271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17457785#comment-17457785
 ] 

Laszlo Kishalmi commented on NETBEANS-6271:
-------------------------------------------

Well. Never use tabs in the source code, period. There is no valid reason to do 
that.

Probably we need to remove the tab option in yaml.

> 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
>            Priority: Minor
>
> (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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to