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

Jumping Cursor #10

Open
de-facto opened this issue Apr 19, 2023 · 1 comment
Open

Jumping Cursor #10

de-facto opened this issue Apr 19, 2023 · 1 comment

Comments

@de-facto
Copy link

de-facto commented Apr 19, 2023

Hi,
I'm scripting with JavaScript using Acode Version 1.8.1 (274). I find that Prettier jumps to a line of code above the line that was edited, or may move back to its starting position on a line, after the same line has been edited, or is in the process of being edited.

Editor set to,
Format on save
Formatter - Prettier

Editing a functioning script tag:
place cursor a third of the way into a line of code;
add an attribute, say crossorigin="anonymous" at the end of the opening tag; if one is able to complete the edit, the cursor will jump back to its starting position, or it might jump up one line.

Investigating further, breaking Prettier formatting rule by further indenting a function block, using SHFT-DWN to select the block; this would leave the cursor at the bottom of the block, at the end of the closing brace. After Prettier has taken effect, the cursor jumps up a line, or as in my last test, two lines.

Other issues:
• Prettier does not automatically register changes made to the editor (increasing autosave time).
• Prettier does not always format a .js file using Format from the Edit Menu, even though Formatter selection is set.

@deadlyjack
Copy link
Collaborator

Thanks for suggestion. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants