4 ms·
>This is handy for running scripts, but why the "shift" modifier? Same for "Open commandline/powershell" when right clicking whitespace of directory. Not a sol
by lp0_on_fire 5y ago
>This is handy for running scripts, but why the "shift" modifier? Same for "Open commandline/powershell" when right clicking whitespace of directory.
Not a solution to your particular gripe but you can actually type "powershell" or "cmd" (minus quotes) into the address bar in windows explorer and it will open in that directory.
- _carbyau_ 5y agoHoly crap, you can too. Thanks for the tip!
- _carbyau_ 5y agoFurther clarification: google and 3 seconds of testing advise you can run any executable in your PATH environment variable. Though there is some other step going on as "powershell" will set the current working dir on startup. Possibly a class entry in registry defining the full command to run.
- amanzi 5y agoWow - news to me! thanks.
- ToFab123 5y agoOn win 11 typing cmd open a command prompt. Typing powersshell makes explorer navigate to "documents\powersshell". Edit: typing powershell.exe does the trick
- drdeca 5y agoYou sure it isn’t just because you wrote powershell as powersshell ? The former worked for me
- RcouF1uZ4gsC 5y agoAmazing! I have been using Windows since version 3.1, and still did not know this trick. HN is truly an amazing place!
- fomine3 5y agoIIRC this is from Vista
- jabbequbs 5y agoAnother one that I use from the address bar is "subl -n ." to open a temporary Sublime Text project. I imagine you could do something similar with VS Code.
- jackson1442 5y agoI use a Mac, but I very frequently use `code .` to open vscode for the current directory.
- mmis1000 5y agoThat didn't work in windows because it tries to open the unix shell wrapper "code" instead of "code.cmd" for some reason.(Because I have wsl2 installed?) Type "code.cmd ." instead works.
- sundvor 5y agoHmmmm, I use WSL2/Ubuntu and I always navigate to my folder in Terminal and type `code .` from there - works perfectly. Really love this integration.
- Gibbon1 5y agoIf you type a url it'll open it in a browser as well.
- cm2187 5y agoYes, and there is a long standing bug. Once you have done that, if you go back to the folder window in explorer, and try to select/copy the folder path, all you will get is the path to cmd.exe instead.
- deleted 5y ago[deleted]
- mmis1000 5y agoAlso "code.cmd ." if you have vscode installed. The address bar works actually like the "Run" box. Capable for running random commands.