Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sbrattla opened this issue Dec 20, 2024 · 1 comment
Open

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

sbrattla opened this issue Dec 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sbrattla
Copy link

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 sbrattla added the bug Something isn't working label Dec 20, 2024
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants