netbeans
netbeans copied to clipboard
Cannot auto indent in C++
Apache NetBeans version
Apache NetBeans 15
What happened
When developing in a C++ file and hitting 'enter' to add a new line of code, the text cursor does not respect the current indentation. Instead, the text cursor starts from the beginning of the line.
https://user-images.githubusercontent.com/1699315/193558138-ee2b6422-a163-4fcb-971e-b1c6153e3480.mp4

How to reproduce
Create a new C++ project: File -> Create new Project -> C/C++ -> Lightweight C/C++ Project
Once the project is created, create a new C++ file and start coding on it. You will see the auto indentation is not respected.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Ubuntu 20.04.5 (Kernel version 5.4.0-126-generic)
JDK
11.0.16
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
This bug occurs every time.
Are you willing to submit a pull request?
No
Code of Conduct
Yes