Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a keyboard shortcut for closing a file in Visual Studio 2012?

Or better yet a key combo that both save and close an open file?

like image 286
user763554 Avatar asked Jan 04 '13 01:01

user763554


2 Answers

Close an open file: ctrl+f4 (for c# environment settings)

like image 144
VladL Avatar answered Sep 24 '22 17:09

VladL


Not exactly a keyboard combo, but if you press Ctrl+s (save), then let go of the s and press F4 (close), it'll do what you want.

Otherwise, the VsVim extension will do a standard save and close with ZZ.

like image 43
Joel Rondeau Avatar answered Sep 23 '22 17:09

Joel Rondeau