Open
Description
Description
When you format a .py
file in Python, the cursor jumps to the end of the file - regardless of the position of the cursor prior to formatting. This is cumbersome, because you have to spend time on finding back to where you were.
Steps to reproduce the behavior:
- Go to any file
- Click on Alt+Shift+F or Right Click > Format
- The cursor jumps to the end of the file, and you loose track of where it previously was
Expected behavior
The cursor should either stay at the same line number it was previously at, even though the formatting has changed the layout of the file. Alternatively, the cursor should be moved to the new position corresponding to the old position prior to formatting.
Desktop (please complete the following information):
- OS: Ubuntu
- JDK Version [21]
- Python version [3.12.3]
- Netbeans Version: [23]
- Python Plugin Version: [1.9.2]