From a184172d886d1797623da13000cd5c9c13392743 Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Mon, 7 Oct 2024 11:02:38 +0200 Subject: [PATCH] Automatically add /// markdown prefix on next line Signed-off-by: Fred Bricon --- src/extension.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/extension.ts b/src/extension.ts index 62f023516..39d5a32d8 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -800,6 +800,11 @@ function enableJavadocSymbols() { // e.g. *-----*/| beforeText: /^(\t|(\ \ ))*\ \*[^/]*\*\/\s*$/, action: { indentAction: IndentAction.None, removeText: 1 } + }, + { + // e.g. /// ...| (Markdown javadoc) + beforeText: /^\s*\/\/\/(.*)?$/, + action: { indentAction: IndentAction.None, appendText: '/// ' } } ] });