Skip to content

Commit a184172

Browse files
fbriconrgrunber
authored andcommitted
Automatically add /// markdown prefix on next line
Signed-off-by: Fred Bricon <[email protected]>
1 parent 50ed9ee commit a184172

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/extension.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,11 @@ function enableJavadocSymbols() {
800800
// e.g. *-----*/|
801801
beforeText: /^(\t|(\ \ ))*\ \*[^/]*\*\/\s*$/,
802802
action: { indentAction: IndentAction.None, removeText: 1 }
803+
},
804+
{
805+
// e.g. /// ...| (Markdown javadoc)
806+
beforeText: /^\s*\/\/\/(.*)?$/,
807+
action: { indentAction: IndentAction.None, appendText: '/// ' }
803808
}
804809
]
805810
});

0 commit comments

Comments
 (0)