asafm7 commented on issue #7984:
URL: https://github.com/apache/netbeans/issues/7984#issuecomment-2501403270
@Chris2011 I agree.
It will be great to have it as a standalone feature. It will be more clear,
useful and intuitive.
As you mentioned, when standing on a closing bracket of a top-level block it
already happens (the line of the opening bracket sticks to the top) - so the
feature is already there, just needs some tweaking.
A couple of notes though:
- The current implementation sticks the line of the opening bracket to the
top. Depending on the formatting, this might be useless as this line may
contain _only_ the opening bracket.
For example, if CSS is formatted this way:
```
p
{
color: red;
text-align: center;
}
```
The line that sticks to the top is:
```
{
```
- The current implementation only sticks top-level opening brackets to the
top. It might be worth considering doing the same with nested blocks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
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