netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Yaml formatter does not format spaces per indent

Open hlavki opened this issue 3 years ago • 2 comments

Apache NetBeans version

Apache NetBeans 15 release candidate

What happened

When I change Number of Spaces per Indent for Yaml language to 2 and open YAML file indented with 4 spaces, click to format and nothing happens.

How to reproduce

change Number of Spaces per Indent for Yaml language to 2: image

Open YAML file indented with 4 spaces and click Format.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Linux 5.19.2-1-default, openSUSE Tumbleweed, x86_64

JDK

OpenJDK 64-Bit Server VM 11.0.16+8-suse-1.1-x8664

Apache NetBeans packaging

Own source build

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

hlavki avatar Aug 26 '22 09:08 hlavki

@lkishalmi ping

mbien avatar Aug 27 '22 17:08 mbien

At the moment there is no reformatting support for Yaml. The action got enabled with the change #1742 which is actually enabled that at least the editor can set the indent to two spaces. Reformatting is yet to be implemented. Till then this issue is about why the reformatting action is enabled.

lkishalmi avatar Aug 27 '22 17:08 lkishalmi