How to get file path in Idea IntelliJ IDE


If you have a file in your Java Project and you want to get the absolute path of it, you can make use of keyboard shortcuts: Command + Shift + C if you are using Mac, Windows + Shift + C on Windows OS,

  • Open the file in IntelliJ,
  • Now Press Shift twice,
  • Type "Absolute Path" and press enter to copy the absolue path of the file,
  • The path will get copied to the clipboard.
Example:
/Users/code2care/IdeaProjects/multi-tasking/src/input-file.csv
How to get file path in Idea IntelliJ IDE
How to get file path in Idea IntelliJ IDE

Top Hashtags:

Advertisements

Advertisements




Advertisements