Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc comment autoindentation and expansion #7843

Closed
jgcodes2020 opened this issue Jul 18, 2021 · 1 comment
Closed

Doc comment autoindentation and expansion #7843

jgcodes2020 opened this issue Jul 18, 2021 · 1 comment
Labels
duplicate Feature: Doc comments An issue related to code comments shown in hover, completion, and signature help. Feature Request Language Service

Comments

@jgcodes2020
Copy link

Type: Feature Request

JSDoc comments are automatically expanded. So if I typed this:

/**‸
function foo(bar) {
   console.log(`foo: ${bar}`)
}

Pressing Enter would do this:

/**
 * ‸
 * @param bar
 */
function foo(bar) {
   console.log(`foo: ${bar}`)
}

In addition, these comments are autoindented. So if I were to put the cursor in a position like so:

/**
 * This is a very cool function.‸
 * @param bar something to put in
 */
function foo(bar) {
   console.log(`foo: ${bar}`)
}

Pressing Enter would do this:

/**
 * This is a very cool function.
 * ‸
 * @param bar something to put in
 */
function foo(bar) {
   console.log(`foo: ${bar}`)
}

This doesn't work in the C++ extension. Although a third-party extension provides Doxygen expansion, it does not provide autoindent. However, this is a feature I'd like to see in the main C++ extension or heck, even the built-in editor functionality!

@michelleangela michelleangela added duplicate Feature Request Feature: Doc comments An issue related to code comments shown in hover, completion, and signature help. Language Service labels Jul 19, 2021
@michelleangela
Copy link
Contributor

Thank you for submitting this feature request. We currently have the same request at #5683. Closing this issue as a duplicate.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate Feature: Doc comments An issue related to code comments shown in hover, completion, and signature help. Feature Request Language Service
Projects
None yet
Development

No branches or pull requests

2 participants