You are currently viewing Hel­pful short­cuts for Vi­su­al Studio

Hel­pful short­cuts for Vi­su­al Studio

Vi­su­al Stu­dio is a de­ve­lo­p­ment en­vi­ron­ment for crea­ting pro­grams and ap­pli­ca­ti­ons in many dif­fe­rent pro­gramming lan­guages, ma­king it one of the most wi­de­ly used pro­grams as a de­ve­lo­per. Vi­su­al Stu­dio is also used in our training al­most every day.

To in­crease pro­duc­ti­vi­ty and save time, the­re are a lar­ge num­ber of short­cuts that can make working with Vi­su­al Stu­dio ea­sier. Ho­we­ver, as beg­in­ners in par­ti­cu­lar do not have all key com­bi­na­ti­ons in their heads, some of the most useful short­cuts for Vi­su­al Stu­dio are lis­ted below.


Ctrl + Enter

Pro­ba­b­ly one of the most im­portant short­cuts. If you move the mou­se over code mark­ed in red and press Ctrl + En­ter, po­ten­ti­al so­lu­ti­ons are dis­play­ed, and is the­r­e­fo­re hel­pful to avo­id errors.

Ctrl + E + F

This key com­bi­na­ti­on for­mats the code. Eit­her sel­ect small sec­tions to be for­mat­ted or use Ctrl + A to sel­ect the en­ti­re code.

Ctrl + K + C

This short­cut comm­ents out all sel­ec­ted li­nes of code. On the other hand, com­men­ted out li­nes can be un­com­men­ted again with the same shortcut.

Ctrl + Shift + F

Sear­ches the en­ti­re code for a term en­te­red in the search field. So if you can’t find for ex­am­p­le a me­thod in a lar­ge pro­ject, this key com­bi­na­ti­on is just right.

Ctrl + – & Ctrl + Shift + -

In­s­tead of long scrol­ling you can na­vi­ga­te back­wards th­rough the code with this com­bi­na­ti­on. You stop in the line you cli­cked on last. So you can move back­wards th­rough the na­vi­ga­ti­on histo­ry wi­t­hout ha­ving to search much. To go for­ward you use Ctrl + Shift + -.

Ctrl + R + R

With this short­cut you can for ex­am­p­le re­na­me pro­per­ties in the who­le code. So if you want to re­na­me so­me­thing, you don’t have to search for every sin­gle re­fe­rence in the code, but only edit the de­si­red code lo­ca­ti­on once.


Of cour­se the­re are many more short­cuts that are hel­pful in Vi­su­al Stu­dio. But to list them all would go bey­ond the scope of this ar­tic­le, so only some of the most fre­quent­ly used short­cuts have been listed.

Close Menu