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

Automatically add doc tag on newline

Open loganmzz opened this issue 8 years ago • 2 comments

Version of VSCode: 1.9.1 Version of the extension: 0.3.10 OS: Windows

Description: When editing Rust documentation (///), it will be nice to automatically adds prefix (/// , with same indentation of last editing line and with a single space after slashes) when entering a new line.

Step 0) Just a function declaration

fn myFunction() { ... }

Step 1) Starting to document

/// my function can do:
fn myFunction() { ... }

Step 2) Just pressing enter to add a new line

/// my function can do:
/// (... ready to continue writing your doc ...)
fn myFunction() { ... }

loganmzz avatar Mar 08 '17 13:03 loganmzz

This would be a very nice addition. I wonder how hard it is to implement.

warmwaffles avatar Mar 18 '17 03:03 warmwaffles

@warmwaffles, I suppose it isn't possible right now. I am try to find a way sometimes.

KalitaAlexey avatar Mar 18 '17 08:03 KalitaAlexey