我如何在函数调用中显示函数参数名称(不是作为工具提示,而是实际编写)或声明
在图像中,一个很好的例子是启动性actor信息函数调用或绑定声明。有关信息,您将看到“ inowneractor:this”,因此“内部分子”标签上放置了我的要求。 我正在看一个虚幻的引擎教程,看到作者随便这样做,但我不知道它存在。我包括我的意思的屏幕截图。如您所见,这与工具提示或IntelliSense无关(我认为)。它是Visual Studio功能(我有VS2019),语言中的新选项,还是可以让您这样做的一些VS附加组件?我确实喜欢Python中的该功能,因此,如果在C ++中进行了可能的话,那就太好了。
In the Image a good example is the InitAbilityActor info function call or the Binds declaration. For the info you'll see "InOwnerActor: this", so the "InOwnerActor" label placed there is what I'm asking about.
I was watching an Unreal Engine tutorial and saw the author casually doing this, and I didn't know that it existed. I'm including a screenshot of what I mean. As you can see, it's not a tooltip or intellisense related (I don't think). Is it a Visual Studio feature (I have VS2019), a new option in the language, or some VS add-on that lets you do that? I do like that feature in Python, so if it's possible in C++, that would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
屏幕截图最有可能显示 inlay noreferrer“> inlay inlay shints resharper c ++ addin的功能。
我不知道还有其他任何容易获得的addin或内置选项,可用于C ++。请注意,Visual Studio支持C# and Visual Basic since
编辑:如评论中所述, Visual Studio 2022 17.2 第二次预览也包含了它作为实验特征。
The screenshot is most likely showing the inlay hints feature of the Resharper C++ addin.
I am not aware of any other readily available addin or built-in option that allows this for C++. Note that Visual Studio supports it out-of-the-box for C# and Visual Basic since VS 2019 v16.8, but not for C++.
EDIT: As noted in the comments, the 2nd preview of Visual Studio 2022 17.2 contains this as an experimental feature, too.
启用
gl!
In Visual Studio 2022 you can enable this by
Gl!