Skip to main content

Posts

Showing posts from October, 2017

Powershell as a Visual Studio External Tool

It's handy to be able to open Powershell at the current solution directory, e.g. for invoking scripts or git commands etc.
Click the Tools menu  -> External Tools -> Add
Title: Powershell, or whatever you want
Command: your PS directory, e.g C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Arguments: -ExecutionPolicy RemoteSigned -NoExit -Command "Set-Location '$(SolutionDir)' | Clear-Host"
Initial directory: $(SolutionDir)

Useful Vim Stuff

Open explorer   :!start explorer /select,%:p
cc - change current line from indent (like _C)
:bro[wse] ol[dfiles]
'0 to '9 - open file from oldfiles with this number
^ - previously opened file