强制 Source Insight 识别新宏
可以在 Source Insight 中创建用户定义的宏。根据 Source Insight 宏观概述:
宏保存在扩展名为 .EM 的文本文件中。这些文件将添加到您的项目、项目符号路径上的任何项目或基础项目。一旦宏文件成为项目的一部分,文件中的宏功能就可以作为“按键分配”或“菜单分配”对话框中的用户级命令使用。
在处理项目时,我从 Source Insight 下载了一个宏文件,并将其以 .em
扩展名保存在 Base 项目中。但是,当我打开“按键分配”对话框时,它没有出现。
然后我同步了项目中的文件,但宏仍然没有出现。我什至重建了我的项目,宏仍然没有出现。
如何让 Source Insight 识别新宏?
It's possible to create user-defined macros in Source Insight. According to the Source Insight macro overview:
Macros are saved in a text file with a .EM extension. The files are added to your project, or to any project on the Project Symbol Path, or to the Base project. Once a macro file is part of the project, the macro functions in the file become available as user-level commands in the Key Assignments or Menu Assignments dialog boxes.
While working on a project, I downloaded a macro file from Source Insight, and saved it with the .em
extension in the Base project. However, when I opened the Key Assignments dialog, it didn't appear.
I then synchronized the files in my project, but the macro still didn't appear. I even rebuilt my project, and the macro still didn't appear.
How do you get Source Insight to recognize a new macro?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在同步项目文件方面走在正确的轨道上。正如 Source Insight 宏文档所述:
您将宏保存在 Base 项目中,因为 Base 项目中的任何内容都位于所有个人项目的项目符号路径上。但是你没有同步Base项目!
您需要打开 Base 项目,同步其中的文件,然后打开您自己的项目。 (用于打开和同步的命令位于“项目”菜单中。)即使不同步您自己的项目,宏也将在“按键分配”中被识别。
You're on the right track with synchronizing your project files. As the Source Insight macro documentation states:
You saved the macro in the Base project, because anything in the Base project is on the project symbol path for all personal projects. But you didn't synchronize the Base project!
You need to open the Base project, synchronize the files there, and then open your own project. (Commands for opening and synchronizing are in the Project menu.) The macros will be recognized in Key Assignments, even without synchronizing your own project.