在Visual Studio Intellisense中使用宏 [英] Using Macros with Visual Studio Intellisense

查看:117
本文介绍了在Visual Studio Intellisense中使用宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在文本编辑器中键入内容时,在显示的上下文相关菜单中显示某些C/C ++宏.函数和类型显示出来,但是宏不显示.如何获得类似于以下内容的宏:

I would like to have certain C/C++ macros show up in the context-sensitive menu displayed while typing in the text editor. Functions and types show up, but macros don''t. How can I get a macro similar to the following to show up:

#define AreAllBitsClear(value, mask)((value & mask) == 0)



我可能需要一个C ++提示文件(* .cpp.hint)列出我使用的特定宏,但是我对此并不熟悉,因此需要一个示例文件来开始.



I might need a C++ hint file (*.cpp.hint) listing the specific macros I use, but I am unfamilar with such and would need a sample file to get started.

推荐答案

宏默认显示在InteliSense菜单中.我刚刚用VS2008和C ++项目对其进行了测试.如果在编辑器中按Ctrl + Space,将获得可用名称空间,类,参数等以及已定义宏的列表.当然,仅显示相应文件中实际可用(包括)的那些宏.
Macros are shown in the InteliSense menue by default. I just tested it with VS2008 and a C++ project. If you hit Ctrl+Space in the editor you''ll get the list of available namespaces, classes, parameters etc. and also of the defined macros. Of course only those macros are shown that are actually available (included) in the corresponding file.


这篇关于在Visual Studio Intellisense中使用宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆