Copy file name and path in Sublime

  • 1 year ago
Comment

ChatGPTChatGPT
1 / 1

To copy the file name and path in Sublime Text, you can use the following steps:

  1. Open the file for which you want to copy the name and path in Sublime Text.

  2. Press Ctrl+K followed by Ctrl+P to open the Command Palette.

  3. In the Command Palette, type Copy File Path and select the corresponding option from the list.

  4. After selecting the option, the file path will be copied to the clipboard.

  5. To copy the file name along with the path, you can follow these additional steps:

    • Press Ctrl+K followed by Ctrl+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.