Skip to content

Commit

Permalink
Automatically add /// markdown prefix on next line
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon authored and rgrunber committed Oct 7, 2024
1 parent 50ed9ee commit a184172
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '/// ' }
}
]
});
Expand Down

0 comments on commit a184172

Please sign in to comment.