vscode-docomment icon indicating copy to clipboard operation
vscode-docomment copied to clipboard

Extra /// being added when saving file

Open dsarfati opened this issue 7 years ago • 0 comments

Running VSCode on Mac. When I save (using either hotkey or file > save) and my cursor is at the end of a comment line the next line is commented out with an extra /// when the save is complete. This happens when the next line is either another comment or code.

For example: (Note: cursor after 'world')

/// <summary>
/// Writes hello world|
/// </summary>
public void WriteHello(){}

Save (Note: cursor moves to next line after new ///)

/// <summary>
/// Writes hello world
/// |/// </summary>
public void WriteHello(){}

For example: (Note: cursor after '')

/// <summary>
/// Writes hello world
/// </summary>|
public void WriteHello(){}

Save (Note: cursor again moves to next line after new ///)

/// <summary>
/// Writes hello world
/// </summary>
/// |public void WriteHello(){}

Any help would be greatly appreciated

dsarfati avatar Mar 02 '18 18:03 dsarfati