netbeansPython icon indicating copy to clipboard operation
netbeansPython copied to clipboard

When you format a file, the cursor jumps to the end of the file

Open sbrattla opened this issue 1 year ago • 1 comments

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:

  1. Go to any file
  2. Click on Alt+Shift+F or Right Click > Format
  3. 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]

sbrattla avatar Dec 20 '24 09:12 sbrattla

Thanks for reporting this issue, we will take a look on ASAP

github-actions[bot] avatar Dec 20 '24 09:12 github-actions[bot]