You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support direction (or "['dir']") optional attribute of Doxygen \param #5773
Feature details:
This is a feature request to support parsing of the direction (or ‘[‘dir’]’) optional attribute of the Doxygen command \param '[‘dir’]'
/*!
* Copies bytes from a source memory area to a destination memory area,
* where both areas may not overlap.
* @param[out] dest The memory area to copy to.
* @param[in] src The memory area to copy from.
* @param[in] n The number of bytes to copy
*/
void memcpy(void *dest, const void *src, size_t n);
If ‘[‘dir’]’ is supported, the hover info of the memcpy would show which param are [in] and which are [out].
changed the title [-] Support "['dir']" optional attribute of Doxygen \param[/-][+] Support direction (or "['dir']") optional attribute of Doxygen \param[/+]on Jul 14, 2020
I also would like support for the doxygen direction attributes. I'd like the hover info support as well as syntax coloring. Notice how the doxygen commented parameters are the same color as the function parameters when [in] and [out] are not present. I'd like to see the same coloring when [in] and [out] are present.
Here is a suggestion for how the syntax coloring could look with [in] and [out]. (I created it with mspaint.) "in" and "out" could be keyword color, variable / parameter color, or another color.
Another example with "in" and "out" with keyword color. I like keyword color better.
Reacted by heartacker, Marcel Jacobse, Ihor Baklykov and Mohammad
Hi Aaron (@aschlicht) Regarding colorization; The C/C++ Extension provides colorization for semantic tokens, but syntax based colorization is provided by VS Code via it's TextMate grammar for C/C++. Given that the colorization you are referring to is in comments, it would be coming from VS Code. You might consider opening an issue in the repo for the C/C++ TextMate grammar used by VS Code, which is here: https://github.com/jeff-hykin/cpp-textmate-grammar
It turns out the feedback ticket to support direction ['dir'] attribute on the Visual Studio side was unintentionally set to complete. The support has not been implemented yet. The feedback ticket status was reset to "under review".
I'm also having this issue with syntax highlighting. As you can see in the attached image highlighting works great without ['dir'] but when I add it in the syntax highlighting goes away
Are there still plans to roll out this feature, even when used correctly, i.e. param[in] a, it does not seem to provide any additional information when hovering over a function
Reacted by Steve, Jose Paul, Takahiro Ueda and Simon
Activity
BillDenton commentedon Jul 14, 2020
Ensure "[in.out"] and not having "[dir]" is supported.
[-] Support "['dir']" optional attribute of Doxygen \param[/-][+] Support direction (or "['dir']") optional attribute of Doxygen \param[/+]aschlicht commentedon Aug 14, 2020
I also would like support for the doxygen direction attributes. I'd like the hover info support as well as syntax coloring. Notice how the doxygen commented parameters are the same color as the function parameters when [in] and [out] are not present. I'd like to see the same coloring when [in] and [out] are present.
Here is a suggestion for how the syntax coloring could look with [in] and [out]. (I created it with mspaint.) "in" and "out" could be keyword color, variable / parameter color, or another color.

Another example with "in" and "out" with keyword color. I like keyword color better.

Colengms commentedon Oct 22, 2020
Taking this out of tracking, as the tracked VS issue appears to have been fixed.
Colengms commentedon Oct 22, 2020
Hi Aaron (@aschlicht) Regarding colorization; The C/C++ Extension provides colorization for semantic tokens, but syntax based colorization is provided by VS Code via it's TextMate grammar for C/C++. Given that the colorization you are referring to is in comments, it would be coming from VS Code. You might consider opening an issue in the repo for the C/C++ TextMate grammar used by VS Code, which is here: https://github.com/jeff-hykin/cpp-textmate-grammar
michelleangela commentedon Nov 11, 2020
It turns out the feedback ticket to support direction ['dir'] attribute on the Visual Studio side was unintentionally set to complete. The support has not been implemented yet. The feedback ticket status was reset to "under review".
bcaddy commentedon Nov 11, 2020
I'm also having this issue with syntax highlighting. As you can see in the attached image highlighting works great without

['dir']but when I add it in the syntax highlighting goes awaymichelleangela commentedon Nov 11, 2020
bcaddy
Colorization in comments is determined by VS Code via it's C++ TextMate grammar and is not determined by the C++ Extension (vscode-cpptools). You might consider opening an issue in the repo for the C++ TextMate grammar used by VS Code, which is here: https://github.com/jeff-hykin/cpp-textmate-grammar
bcaddy commentedon Nov 11, 2020
Thank you!
aschlicht commentedon Nov 12, 2020
I open an issue in the cpp-textmate-grammer repo, as suggested in other comments, for [in] and [out] syntax coloring.
jeff-hykin/better-cpp-syntax#520
JohanBertrand commentedon Aug 14, 2023
Hi, is there still something in development for this feature ?
There is still a bug happening with the hover info when the attribute is not directly declared after
paramFor example:
Generates the following hover info:

Could it be fixed within the scope of this issue, or should I create a new one?
Thank you !
sean-mcmanus commentedon Aug 14, 2023
Johan Bertrand (@JohanBertrand) Not sure -- if it's fixed we could create a new issue to track it.
michelleangela commentedon Aug 14, 2023
Johan Bertrand (@JohanBertrand) the link to the original Visual Studio feedback got updated. I updated the link to https://developercommunity.visualstudio.com/t/support-dir-optional-attribute-of-doxygen-param/1112281.
wouter-heerwegh commentedon Dec 18, 2023
Are there still plans to roll out this feature, even when used correctly, i.e.
param[in] a, it does not seem to provide any additional information when hovering over a functionclee-ai commentedon Feb 13, 2024
Is this feature dependent on Visual Studio fixing the ticket linked above, or is there a path forward within VScode?