Reputation: 196469
Is there a shortcut in VS 2005 or resharper to close the current file. or "save and close" would be even better
Upvotes: 12
Views: 3285
Reputation: 163
Tools -> Options -> Keyboard
Find "Windos.CloseDocumentWindow"
And for me, need to set "Use new shortcut in" to "text editor" to override old ctrl+w without delete
Upvotes: 0
Reputation: 10326
The question is a bit old. Just wanted to update it with the current solution.
As you can see below, you can also completely customize your shortcuts:
now use the field Show commands containing to search for file.close
select File.Close on the list
click the field Press shortcuts keys
type your desired shortcut, for example, <Ctrl> + W
finally, click Assign
And you're good to go!
Upvotes: 11