开发者

Compile one file in QT Creator

开发者 https://www.devze.com 2022-12-08 13:31 出处:网络
How to compile only one fi开发者_高级运维le from project in QT creator. Is there a hotkey? For example in VS you can press Ctrl F7 and compile your current cpp file.It is now possible to do it, since

How to compile only one fi开发者_高级运维le from project in QT creator. Is there a hotkey? For example in VS you can press Ctrl F7 and compile your current cpp file.


It is now possible to do it, since at least Qt Creator 2.8.1.

Use Build->Build file <filename> or the shortcut Ctrl+Alt+B:

Compile one file in QT Creator

Or right click on a file in the project view, and there is a Build item in the context menu that builds just that file:

Compile one file in QT Creator

You can track the feature request or vote for it at https://bugreports.qt.io/browse/QTCREATORBUG-106.


Normally if you hit CTRL + B, Qt Creator will call make, which will in turn compile any files that have been modified since you compiled the last time. AFAIK there is no designated key for re-building the current file.

However, all Keystrokes can be configured in the application preferences General -> Keyboard. There are also a number of interesting other commands you might find useful.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号