Variable definitions: FilePath, FileDir

Is there any where in IntelliJ help where it defines such things as

$FileDir$

$FilePath$

Thanks,

Ted

0

It's a dir and path respectively of the file currently opened in editor or
selected in the project view or commander.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Is there any where in IntelliJ help where it defines such things as

$FileDir$

$FilePath$

Thanks,

Ted



0

Is there documentation for these in the help system?

There are other variables that I am also curious about.

Thanks,

Ted

0

This is extremely late but this thread actually shows up nearly first on Google when I searched for this information, so I'll reply here.

The macros don't seem to be documented anywhere (I'd love to be corrected on this), but you can find a list of them by going to File > Tools > External Tools > <Create new tool> and clicking "Insert macro". There's also a preview box showing the current value of the selected macro. Most are self-explanatory, but some (e.g. Prompt) could use more documentation for sure.

4

This is helpful! Thanks! :)

0

As an update, I was looking for them and I couldn't quite find them per the instructions above.

I found them by opening settings, navigating to Tools > External Tools, and when creating a new tool, the 3 input boxes under Tool Settings have little plus arrows next to them. Clicking these will display a list of variables you can use. (The same is available when creating a file watcher!)

1

So is there any easy-to-use documentation about the built in variables/macros today 2022?

Don't say that the current display of simple info in "+" macro window is enough......

0

BBK_KBB

We are working on adding the info to our documentation. Appreciate the feedback.

0

请先登录再写评论。