-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Feature request - Doxygen stub generation #5683
Comments
There is an extension that does that (and more): doxdocgen Disclaimer: I‘m the original author so I may be biased. Edit: Maybe we can work together on this? The problematic part is parsing the function signatures because regex is hard. If my extension could access the signature and generate information based on that it would be a lot more stable. I assume the cpptools have the information about the signature of the function similar to a clang AST? |
@christophschlosser We're going to collect telemetry from the Doxygen consumption usage on the C/C++ extension to help prioritize this feature request, as well as to help make decisions on what the overall Doxygen experience will be with the C/C++ extension (whether that requires adding features to C/C++ extension or collaborating/promoting third party tools that can fulfill this experience). The upvotes of this feature request will also be used to determine prioritization. A few reasons we would add Doxygen generation to the C/C++ extension:
|
Hi @michelleangela , thanks for getting back to me.
Why not both? 😉 Totally understand the reasons for integrating this into the C/C++ extension as the main reason why I wrote this extension was that VS Code was missing this feature and I transitioned from CLion, which had it, and it didn't seem close to being implemented in 2017. |
For extension version 1.12.1 Currently, the feature will be triggered via context menu command, code action (light bulb) or typing. The command will always appear regardless of the cursor position, but we mainly consider the following situations:
Except for these situations, the context menu command won't generate comments. The code action (light bulb) will appear when clicking on the variable/function/class name or on the empty line above the signature line. Typing Currently, there is setting The comments will be generated when there is nothing other than the trigger string on the current line and there is no comment found above the current line. Known Issue As our extension do not support autocomplete for the multi-line comment (microsoft/vscode#154994), after tying |
@jiefangli after type what can I do to make it work, |
Have you tested how this interacts with cschlosser.doxdocgen? |
@cschlosser I have not (maybe others on our team have) -- can you let us know if there is some unexpected interaction we should try to handle better. You can set |
@heartacker Using the |
@Spaark84 The asterisk alignment is fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.12.2 . |
@gtianw Auto-complete of Doxygen keywords is whereas the comment generation itself is the /// plus any initial |
Summary:
Be able to generate Doxygen stub comments above a function.
Example:
For the function
int addition(int a, int b, int c)
, the following stub comment will be generated above the functionGenerated documentation comments styles:
///
/**
/*!
//!
This specification is in progress and may change. More details to follow on:
Note: the issue tracking to display Doxygen comments on tooltips (such as from hover over a symbol) is at #658.
The text was updated successfully, but these errors were encountered: