Qt Creator 代码文件重构
我想知道是否有人知道使用 QTCreator 重构 QT 项目中的代码文件的快速简便的方法?具体来说,我正在尝试组织我的源文件,并且必须返回到项目文件并更改每个文件的文件路径,这有点痛苦。更不用说移动对话框类更糟糕了(项目中未包含.ui 文件,但您也必须更改它们。
I was wondering if anyone know of a quick and easy way to refactor the code files in my QT Project using QTCreator? Specifically I am trying to organize my source files and Its a bit of a pain to have to go back into the project file and change the filepath for each file. Not to mention moving a dialog class is even worse (there are .ui files not included in the project but you have to change those too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
唯一“集成”的文件重命名/移动支持(即它自动更新您的项目文件)是使用活动项目窗格和文件列表,右键单击并选择“重命名”,使用“../../some/new” /dir/name.cpp”来移动您的文件。它当然不会更新任何 #include 语句,但会省去您手动修改 .pro 文件的麻烦。它还尊重“git rename”等......
The only file renaming/moving support that is "integrated" (i.e. it updates your project file automatically) is using the active project pane with your file list, rightclick and select "rename", using "../../some/new/dir/name.cpp" to move your files. It will of course not update any #include statements, but will save you the trouble of modifying your .pro file manually. It also respects "git rename" etc...
我认为这是不可能的,在没有 ide 支持的情况下移动文件是一件痛苦的事情......:/
I don't think thats possible, moving files without ide support is a pain in the... :/