Can intellij-rust understand cfg macros?


#1

I love using intellij-rust to browse code, however I am not able to jump into code hidden behind cfg macros such as OS specific code.

Can intellij-rust understand cfg macros? Can I fill in the cfg variables (e.g. target_os = "windows") somewhere to be able to browse and autocomplete such code?

If not, is this on the road map?


#2

CC @matklad

Here are some links that talk about it:

Unfortunately a general macro parsing/expansion problem is a tough one. Currently we only hardcode some macros defined in the standard library.