Discussion:
[Qt-creator] Exclude build directory from locator results
David Mirochnik
2018-07-09 06:41:32 UTC
Permalink
Hello,
I am using Qt Creator 4.6.0 to compile CMake project. The build directory
keeps appearing in my searches and makes it very annoying.

How to exclude build directory from:

1. Method locator results (Ctrl+K , m )
2. Usages results (Ctrl+Shift+U)
3. Go to definition results (F2)


Why I need this and how I am using Qt Creator described in this post:
https://forum.qt.io/topic/89876/exclude-build-directory-from-locator-results

Thank you in advance.
Tobias Hunger
2018-07-10 09:35:44 UTC
Permalink
Hi David!
Post by David Mirochnik
Hello,
I am using Qt Creator 4.6.0 to compile CMake project. The build directory keeps appearing in my searches and makes it very annoying.
Method locator results (Ctrl+K , m )
Usages results (Ctrl+Shift+U)
Go to definition results (F2)
Those are all provided by the code model. I do not think they even
have the information whether or not those files are generated or not
anymore:-/ We can not really leave out those files from the code model
either: They are needed to parse the code after all.

The .ui files are handled by ExtraCompilers. The "big solution" would
probably be to write one for your .q files.

Sorry, I do not have a good idea on how to do what you want right now.
I'll think about it a bit more.

Best Regards,
Tobias

Loading...