CodeInsight for the Uses Clause in RAD Studio 10.4 Sydney

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,203
Credits
4,034
CodeInsight for the Uses Clause in RAD Studio 10.4 Sydney
Malcolm June 23rd, 2020
[SHOWTOGROUPS=4,20]
CodeInsight for the Uses Clause in RAD Studio 10.4 Sydney
Malcolm June 23rd, 2020

With the new, LSP-based CodeInsight in RAD Studio 10.4 Sydney, CodeInsight in the Uses clause is much more useful.

It’ll let you search for all the standard VCL/FMX/RTL units, as well as any unused units in your project. Combined with the new searching where it matches entries containing what you’ve typed, not just those starting with what you’ve typed, and I find myself using it a lot more.

uses1-1024x496.png


However, what about all your own units, and 3rd party ones, that you use but don’t add into your project? How do you get it to show them?

options-1024x755.png


I assumed it would be driven by my Для просмотра ссылки Войди или Зарегистрируйся, but even after I added in the path to the folder that contained my units, it still wouldn’t show up.

uses2-1024x552.png


Well, turns out that I was adding the wrong path. Instead of the folder with my pas files, I should have been adding the path to my dcu files. That’s what the LSP implementation is looking for at the moment.

Для просмотра ссылки Войди или Зарегистрируйся (go vote for it if you’d like to see this), but in the meantime, just add the path to your dcu files into the Для просмотра ссылки Войди или Зарегистрируйся and CodeInsight will happily show you all your favourite units.

uses3-1024x535.png


[/SHOWTOGROUPS]