Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++: how to get filename / path of current file and put it into the clipboard in notepad plus plus

Editing files with VIM I can easily copy & paste the name ( or the full path ) of the file I'm working on ( to understand what I mean about VIM you can see: this question or wiki );

Is there an equivalent solution by using Notepad++ ?, how can I do?

like image 420
Franco Rondini Avatar asked Jul 26 '12 08:07

Franco Rondini


People also ask

How do I put the file path in notepad?

Go to the system32 folder and type "notepad.exe" into the 'File Name' bar.

How do I copy the path to the clipboard?

Hold down the Shift key, then right-click the photo. In the context menu that appears, find and click Copy as path. This copies the file location to the clipboard. (FYI, if you don't hold down Shift when you right-click, the Copy as path option won't appear.)

How do I copy filename and path?

Find the file or folder whose path you'd like to copy in File Explorer. Hold down Shift on your keyboard and right-click on it. In the context menu that pops up, select “Copy As Path.”

Which part of the Notepad++ shows the filename and file type of the current file?

The windows standard dialogs use windows rules, and follow windows explorer settings, just like in every application that uses windows standard dialogs. Notepad++ uses that windows standard dialog. Notepad++'s tab bar will show the full filename, with extension, regardless of that setting.


2 Answers

Notepad++ has no default shortcut to do that, but:

open menu: "Edit" (Alt-E) then select: "Copy to clipboard" and you have different options to copy the fully qualified file name for current document or parts of it.

See this wiki for exhaustive reference.

like image 155
2 revs, 2 users 82% Avatar answered Sep 22 '22 07:09

2 revs, 2 users 82%


Another solution is to right-click on the tab, which will let you get the file name/path from there. However, I have tabs disabled, so I have to go with Franco's solution.

like image 43
gunr2171 Avatar answered Sep 22 '22 07:09

gunr2171