Skip to main content

Command Palette

Search for a command to run...

Add Open Windows Terminal on the context menu📄

Published
2 min read
Add Open Windows Terminal on the context menu📄
S

I love to develop software that makes everyday life simpler, no matter big or small, but if it provides the user a push of productivity and efficiency, It makes my day.

I always like shortcuts, and windows terminal by default doesn't add open windows terminal on the context menu. And this little shortcut comes really handy to open the project from the file explorer.

Before we get started

Install Windows terminal from the Windows Store

Create a text file

create a text file and paste the below lines in the file. replace {username} with the username of the system you can find it by running echo %USERNAME% in the cmd.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]

@="Open Windows terminal"

"Icon"="C:\\Users\\{username}\\AppData\\Local\\Microsoft\\WindowsApps\\terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]

@="\"C:\\Users\\{username}}\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" -d %V.\"\""

once you have copied it into the text file, now rename the file extension to .reg. If you are unable to do this enable file name extensions in the view panel of the file explorer.

File name extenstion.png

once you edited the file extension from .txt to .reg, now run the file. Windows asks for confirmation, and after you give the green signal you can now see the windows terminal here on the context menu.

137 views

More from this blog

S

Supercharged Dev

11 posts

I like to keep my keyboard screaming ⌨, code building 💪, tests working🧪 and, program running 🏃‍♂️.