weakish / vscode-complete-statement

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

create a new line after semicolon and move the cursor down after semi… #5

Closed rrad42 closed 5 years ago

rrad42 commented 5 years ago

Hi

This tries to handle issue #2 so that the cursor moves to the start of the next line after. It provides a workaround for the inconsistent behavior of vscode after text insertion by moving in different directions depending on where the cursor is. (This works with v1.33.1)

This changes the behavior of the extension. A new line is automatically added after a semicolon and the cursor is moved down. Your users might not be used to this, so you may not want to accept this PR and instead add this behavior as an option.

weakish commented 5 years ago

This changes the behavior of the extension. ... Your users might not be used to this, so you may not want to accept this PR and instead add this behavior as an option.

The previous behavior is actually a bug (because I could not find a workaround for vscode's mystical behavior).

Thanks lot for your pr. :heart: