STM32CubeIDE how to show hints when calling function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 2:11 AM
Hello,
STM32CubeIDE.
Is it possible to show hints (description of the function, description of the parameters of the function, description of the return value) when calling function?
I made this function (see Figure 1) and made documenting comment. When I calling this function or I hover the cursor over the function name a tooltip with the function code pops up, but I want to see description of the function (@brief parameter from documenting comment, see Figure 1).
Figure 1
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 3:41 AM
It will show the comments before the function definition (not declaration), plus the function code, automatically. This is what "Combined Hover" does. Probably you don't have comments before the definition, only the declaration. Don't think you can change this behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 2:38 AM
Hello @Mykola_Levun,
I think it should be here: windows> preferences
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 2:49 AM - edited ‎2024-08-30 2:50 AM
Hello @Sarra.S,
It is not work (see Figure 2).
Figure 2
When I check the box next to Documentation, then I get an error "'Documentation' hover uses the same modifier as 'Combined Hover' hover" (see Figure 2). When I uncheck the box next to Combined Hover, then there is no error, but when I calling function or I hover the cursor over the function name, there is no a tooltip.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 3:06 AM
Yes, obviously there is a conflict, since both combined hover and documentation have key modifier blank.. you should set a key modifier for one of them
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 3:39 AM
I did it (see Figure 3), but tooltips from the documentation comment are not shown; hovering over the function name only shows the function code.
Figure 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 3:41 AM
It will show the comments before the function definition (not declaration), plus the function code, automatically. This is what "Combined Hover" does. Probably you don't have comments before the definition, only the declaration. Don't think you can change this behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 3:58 AM
Hello @TDK,
Everything works as you explained. Thank you for explanation.
