Use ConEmu terminal and ConEmu VS extension for Visual Studio (like VS 2022)
.
- Vscode and vscode-msr extension are optional (can be integrated with VS + system console/terminal).
- See Why + How to Use Custom Alias and Normal Alias for more details.
-
Manually install ConEmu or run command:
winget install conemu
(built-in winget), orchoco install conemu
(if you have Chocolatey). -
Install ConEmu VS extension in Visual Studio (need to restart VS).
- Clone this repository.
- Setup ConEmu by running long command below in a CMD window (replace
C:\opengit\msrTools
to your local path at first):- ConEmuC -GuiMacro SetOption FarGotoEditorPath
"PowerShell -NoProfile -ExecutionPolicy Bypass -NoLogo -WindowStyle Hidden -File
C:\opengit\msrTools\
code\vs-conemu\Open-ClickedPathRow-in-VisualStudio.ps1\"%1\" \"%2\" \"%3\""
- If failed due to not found
ConEmuC
: Run add-user-path"C:\Program Files\ConEmu\ConEmu"
then re-run above command.
- If failed due to not found
- ConEmuC -GuiMacro SetOption FarGotoEditorPath
- Follow this screenshot to setup ConEmu with Visual Studio.
- You can also run command alias setup-vs-conemu if you done alias step below.
- Optional: Use normal + custom alias (like gfind-cs-pref) to help general code mining + file processing in System + Vscode + Visual Studio.
- Example: Search all references in whole repository (not just solution scope of current *.sln) + filter output all junk results (tests + definitions):
- gfind-cs-pref
ExecuteInConEmu
- You can add more args like below - the more args, the faster searching speed:
- gfind-cs-pref
ExecuteInConEmu
--xpTool,test,/unit
- gfind-cs-pref
ExecuteInConEmu
--sp/ConEmu,Integration
- gfind-cs-pref
- You can add more args like below - the more args, the faster searching speed:
- gfind-cs-pref