How to use shortcuts of integrated terminal in Visual Studio(2022)?

154 Views Asked by At

I use Cmder as a terminal when using Windows. I also use this terminal on any IDE (Vscode/IntellijIDEA). My reason for using it is that it makes it possible to use the features of the Linux terminal on windows. For example CTRL+R (Recall the last command matching the characters you provide). When I want to use this shortcut on VisualStudio(2022), it conflicts with the Globally assigned shortcuts. I wonder if I can disable the globally assigned shortcuts in VisualStudio specifically for the terminal? Or if there is a matching shortcut in the terminal, can I make it work primarily?

I tried disabling the conflicting shortcuts on Visual Studio(2022), but I couldn't get the result I wanted because there were too many shortcuts for the terminal.I also changed the default keyboard mapping scheme, still didn't work.

1

There are 1 best solutions below

2
Brett Zook On

After some experimenting/guessing, I found that Ctrl+Shift+R in the Visual Studio 2022 integrated Terminal seems to have the same effect in dotnet watch as Ctrl+R when running in a standalone PowerShell terminal.

I'm not sure if this solution is specific to dotnet watch or not, but maybe Ctrl+Shift+R will work for you in the context of Cmder.