[PHP] Move caret inside on unfolding code
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 22
### What happened
I use code folding on arrays. Oftentimes upon unfolding the code by double clicking on it, after a short period of time the code refolds. This can be quite annoying.
An easy solution might be if after unfolding the code, the caret position would be moved inside the unfolded code.
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
[...] // Double click on folded array
{Caret Position}["This ist the array content"] // afterwards the code tends to fold again
[{Caret Position}"This ist the array content"] // this might prevent unwanted code folding
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Mageia 8 (Linux)
### JDK
javac 11.0.17
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by reproducing the issue in Apache NetBeans 22 with a folded PHP array, following the double-click steps in the report. Trace the PHP editor's code-folding and caret behavior; done means unfolding places the caret inside the unfolded array content and prevents the unwanted immediate refolding.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100