HotKey or auto extension for interpolated strings in VS

I want to save a few keystrokes when entering interpolated C # lines in VS 2015/2017.

From what I see, there are no built-in functions for this.

A somewhat related question here: Automatic interpolated strings

Now I am installing an AHK script, which makes ctrl+[ hotkey for this in VS. I am wondering if anyone knows of a better way?

 #SingleInstance force #IfWinActive, ahk_exe devenv.exe ^[:: SendInput,$" 

I also reviewed the script below to directly expand the $ character set, but that would prevent printing $ own.

 #SingleInstance force #IfWinActive, ahk_exe devenv.exe :*:$::$" 
0
source share
1 answer

You can add IDE behavior directly to the script

 #SingleInstance force #IfWinActive, ahk_exe devenv.exe ^[:: SendInput,$""{Left} 

If this does not answer your question, please add additional information for non-VS users about what you are trying to achieve.

0
source

Source: https://habr.com/ru/post/887068/


All Articles