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

[BUG] Adding newline character to the end #11

Open
5OBHAN opened this issue Mar 16, 2023 · 2 comments
Open

[BUG] Adding newline character to the end #11

5OBHAN opened this issue Mar 16, 2023 · 2 comments

Comments

@5OBHAN
Copy link

5OBHAN commented Mar 16, 2023

The latest version of the extension from GitHub still has newline character problem. Upon pressing ctrl+; , along with adding statement terminator ; a newline character also gets added every time.

@weakish
Copy link
Owner

weakish commented Mar 18, 2023

Upon pressing ctrl+; , along with adding statement terminator ; a newline character also gets added every time.

This is the expected behavior.

From the README:

Complete normal statement with ;, insert a newline and move down.

If you do not want the newline, you can use other extensions or write your own extension.
You can also fork the code of this extension (if you'd like to send a pull request, IMHO it would be great to add a configurable option for whether inserting a newline, with the default value to true (inserting a newline) for backward compatibility).

@5OBHAN
Copy link
Author

5OBHAN commented Mar 19, 2023

I see, there's should be on/off feature for this. I will try to implement if I can.

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