简体   繁体   English

如何在Eclipse C ++中重构/重命名宏

[英]how to refactor/rename macros in Eclipse C++

if I need to rename a function or a variable on Eclipse I can just right-click on it and refactor->rename 如果我需要在Eclipse上重命名函数或变量,我可以右键单击它并重构->重命名

This does not seem to work for Macro. 这似乎不适用于Macro。

  • Is there a way of doing it without using another external tool or command? 没有不使用其他外部工具或命令的方法?

System : 系统

Eclipse Standard/SDK Version: Kepler Release Build id: 20130606-0932 OS: ubuntu 12.04 Eclipse Standard / SDK版本:Kepler发行版本ID:20130606-0932操作系统:ubuntu 12.04

I don't think Eclipse supports Macro refactoring since implementing a feature such as renaming a function is easier than implementing the same thing for, say a macro. 我不认为Eclipse支持宏重构,因为实现诸如重命名功能之类的功能要比为宏实现相同的功能容易。

I also looked at the Eclipse documentation and the rename action does not seem to have support for Macros. 我还查看了Eclipse 文档 ,并且重命名操作似乎不支持Macros。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM