vscode-rust
vscode-rust copied to clipboard
Automatically add doc tag on newline
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() { ... }
This would be a very nice addition. I wonder how hard it is to implement.
@warmwaffles, I suppose it isn't possible right now. I am try to find a way sometimes.