Skip to main content

Featured

How to show full file path in the status bar or title bar in Sublime and Visual Studio Code

If you feel that you want to show the full file paths in your favorite editors - Sublime Text and Visual Studio Code, follow the simple steps below:

Sublime Text (on a Mac): Goto Sublime Text -> Preferences -> Settings and add the following:

{
    "show_full_path": true
}

Visual Studio Code (on a Mac): Goto Visual Studio, Code -> Preferences -> Settings and add the following:

{
    "window.title": "${activeEditorLong}"
}

As a small tweak, i added the following into my visual studio title, as it allows any custom string:

{
    "window.title": "${activeEditorLong} - work hard, play harder"
}

Now you can see the full path of the files in the top title bar.

ssh-copy-id using a different/custom port


Have you ever created your own cloud server and changed your ssh port from the default 22 to something else? And have you ever tried to use ssh-copy-id to copy your local ssh public key to the remote and it doesn't work?

The answer is simple. There are no parameters that you can provide for ssh-copy-id command. Instead do the following:

ssh-copy-id -i id_rsa.pub "user@domain.com -p 12345"
That's it. It should work without a problem. 

Comments

Popular Posts

You will receive wonderful short stories written by him and inspirational articles once every month.