Skip to content

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

Open
@sbrattla

Description

@sbrattla

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]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions