For partial lines of code, this extension completes the line with parentheses, curly braces and semi-colons.
For blank lines, it provides suggestions for a new line of code based on the previous line of code.
This extension is heavily inspired by the Complete Statement functionality in JetBrains Resharper.
Complete a partial line of code
If the caret is located on a non-blank line, the extension will try to append parentheses, curly braces and semi-colons to make a valid line of code.
Suppose the caret is located on this line of code:
If you press Ctrl+Shift+Enter, the extension will insert two parentheses and a pair of curly braces and position the caret inside the braces:
Complete a blank line
If the caret is located on a blank line, the extension suggests a new line of code based on the previous line.
Suppose the caret is located on the blank line after this assigment statement.
If you press Ctrl+Alt+Enter, the extension will suggest an
Suppose you press Ctrl+Alt+Enter again inside the curly braces, the extension will suggest a
Inside loop statements (
When you press Ctrl+Alt+Enter and select
PLEASE NOTICE: The extension does not perform proper language analysis. Instead it uses indentation to figure out the code structure. If you uses 'special' indentation rules or like to break code across multiple lines, the extention will probably not work as intended.