Search code examples
sublimetextsublimetext3

How to (easily) get current file path in Sublime Text 3


How to (easily) get current file path in Sublime Text 3

I don't often use ST console (I used it only once to install package manager), but I suppose it could be good way to :

  • get current file path like some kind pwd command.
  • But it doesn't work.

Does anyone know an easy way to get current file path?

  • to clipboard : better not a strict objective in the answer
  • not necessary by ST command, maybe package?

Solution

  • Right click somewhere in the file (not on the title tab) --> Copy file path

    If you don't want to use the mouse, you could set up a keyboard shortcut as explained here https://superuser.com/questions/636057/how-to-set-shortcut-for-copy-file-path-in-sublime-text-3