Skip to content

Empty Lines Not Getting Commented-Out #88480

@FloatingSunfish

Description

@FloatingSunfish
  • VSCode Version: 1.41.1
  • OS Version: Windows 10 64-bit

Steps to Reproduce:

  1. Sample code to be commented-out:
package com.mycompany.app;

public class MyApp {
    public static void main(String[] args) {
        SayHello();
    }

    static void SayHello() {
        System.out.println("Hello!");
    }
}
  1. Expected result:
// package com.mycompany.app;
// 
// public class MyApp {
//     public static void main(String[] args) {
//         SayHello();
//     }
// 
//     static void SayHello() {
//         System.out.println("Hello!");
//     }
// }
  1. Actual result:
// package com.mycompany.app;

// public class MyApp {
//     public static void main(String[] args) {
//         SayHello();
//     }

//     static void SayHello() {
//         System.out.println("Hello!");
//     }
// }

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor-commentsEditor commenting/uncommenting commandsfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions