- 1 year ago
Copy file name and path in Sublime
To copy the file name and path in Sublime Text, you can use the following steps:
Open the file for which you want to copy the name and path in Sublime Text.
Press
Ctrl+K
followed byCtrl+P
to open the Command Palette.In the Command Palette, type
Copy File Path
and select the corresponding option from the list.After selecting the option, the file path will be copied to the clipboard.
To copy the file name along with the path, you can follow these additional steps:
Press
Ctrl+K
followed byCtrl+P
to open the Command Palette again.This time, type
Copy File Name
and select the corresponding option from the list.The file name will now be copied to the clipboard.
By using the "Copy File Path" and "Copy File Name" commands in Sublime Text's Command Palette, you can easily copy the file path and name to the clipboard. These commands are helpful when you need to reference or use the file path or name in other applications or contexts.