Community
Participate
Working Groups
1). Auto Surround Surround/wrap selected text with quotes or with brackets. 2). Format On Type When you enter the semicolon、enter/return key, the code is going to be formatted. 3). Trim Auto Whitespace Remove trailing auto inserted whitespace(You can show whitespace in VS Code, and press enter key constantly in a function/method to see what will happen).
1). Not sure if this exists - in theory a snippet could probably already provide this functionality (eg. the sysout snippet lets you surround selected text with Ssystem.out.println) 2). Not sure if this exists already but shouldn't be too difficult to implement if we already have format-on-save implemented 3). Already exists through auto-format, does it not? (Ctrl + Shift + F) I'm not against these improvements at all, but have a feeling their functionality might already exists.
1). I know this template. But we have to press `Alt+/`. Auto Surround allows us surround selected text without pressing any other shortcut. Just press " or ( or {. 2). Format on save will format the editing line. For example, trimming the leading whitespaces, so I must press `Tab` to indent again, and sometimes this feature may break the content-assist popup dialog, so I must press `Alt+/` again. 3). Also, format shortcut will trim the leading whitespaces.