vscode-complete-statement icon indicating copy to clipboard operation
vscode-complete-statement copied to clipboard

[BUG] Adding newline character to the end

Open 5OBHAN opened this issue 3 years ago • 2 comments

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.

5OBHAN avatar Mar 16 '23 18:03 5OBHAN

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).

weakish avatar Mar 18 '23 08:03 weakish

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

5OBHAN avatar Mar 19 '23 02:03 5OBHAN