Open
Description
Issue Type: Bug
I'm using JavaScript but this is likely not language-specific:
- Start typing a comment
// something like, if ( true )
- Type an opening brace
// something like, if ( true ) {
- Editor will insert a closing brace, cursor will be between braces
// something like, if ( true ) {|}
- Hit Enter / Return
Expected:
Newline will automatically be in a commented-out line
// something like, if ( true ) {
// }
Actual:
The comment is treated like code and an extra newline is inserted, introducing a hanging end-brace:
// something like, if ( true ) {
}
VS Code version: Code 1.38.0 (3db7e09, 2019-09-03T21:47:00.464Z)
OS version: Darwin x64 17.7.0
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: enabled oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_deferred_display_list: disabled_off skia_renderer: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | 2, 2, 2 |
Memory (System) | 16.00GB (3.65GB free) |
Process Argv | -psn_0_3810210 |
Screen Reader | no |
VM | 0% |
Extensions (8)
Extension | Author (truncated) | Version |
---|---|---|
vscode-css-formatter | aes | 1.0.1 |
xml | Dot | 2.5.0 |
mssql | ms- | 1.6.0 |
debugger-for-chrome | msj | 4.11.7 |
vscode-code-outline | pat | 0.2.1 |
java | red | 0.48.0 |
vscodeintellicode | Vis | 1.1.9 |
vscode-java-debug | vsc | 0.21.0 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment