weakish / vscode-complete-statement

Complete Statement with semicolon in vscode.
BSD Zero Clause License
15 stars 3 forks source link

[BUG] Adding newline character to the end #11

Open 5OBHAN opened 1 year ago

5OBHAN commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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