When editing an HTML file in Visual Studio 2013, if the cursor is put on the opening tag, for example <div>, it will display an editing option "Remove and keep children", which will remove the tag pair under the cursor.
I'm not sure whether this is Visual Studio's feature or Web Essential's feature, but I want to assign keyboard shortcut to it. Is that possible?
Related
Please note I am not talking about "Track active item in Solution Explorer".
I like that, so when I am switching editor windows, Solution Explorer automatically tracks, and made selected the item in its tree. That's cool.
Instead I am asking about the reverse automatism: When I select an item in Solution Explorer (not double click, just select), it opens and activated in the editor using a single rightest tab, in the editor pane. (usual files are stacked from left tabs).
How can I prevent this automatic opening in VS 2015?
In VS 2013 it's under Settings - Environment - Tabs and Windows - Preview Tab.
Currently in Visual Studio 2013 with Web Essentials I have to press Enter or Tab to accept the selected intellisense item.
I am more used to pressing Space or continuing to type when working in C#. Is there a way to enable such a feature while editing Typescript?
I was able to modify this behaviour using Resharper.
Does Visual Studio 2010 have a shortcut for quick fix?
I'm tired of grabbing the mouse, hovering over this red line, waiting for the little clipboard icon to appear, clicking on the first menu item. It would be so much fast to just open that dialog with some keys and confirming the first (i.e. selected) item.
The feature is called the "Smart Tag".
Default Keyboard Shortcut Schemes (ReSharper documentation)
Stack Overflow question How does one set Visual Studio 2010 keyboard shortcuts comfortably, especially when using ReSharper?
Stack Overflow question Visual Studio keyboard shortcut to automatically add the needed 'using' statement
They can usually be invoked via the keyboard using either:
Ctrl+. (on a standard QWERTY keyboard)
Alt+Shift+F10 (if you've not got Function Lock enabled)
If your cursor is on the item that is underlined, you can use Ctrl + . to pop up the intellisence/suggestion context menu.
Alt + Shift + F10 does the trick.
Via #Rohit from Visual Studio keyboard shortcut to automatically add the needed using statement
If you want to edit the shortcut of quick fix you can do the following:
Open Tools->Options->Keyboard and in the Show commands containing field enter EditorContextMenus.CodeWindow.QuickActionsForPosition and replace the old shortcut with the new one.
I'm tired of right clicking on the header file in c++ and choosing open document "blahblah.h"
Is there a keyboard shortcut?
I don't have VS 2005 installed anymore, so I can't guarantee it, but in 2008 you don't need a macro or VA-X for this (though you certainly want Visual Assist X if you don't have it). I don't recall much change in this for quite a while, so I'd expect it to work in VS 2005 as well.
Select Customize... from the Tools menu. Click on the Keyboard button at the bottom left corner of the dialog that comes up. In the "Show Commands Containing" field, type in "header". One of the commands that shows up should be something like "EditorContextMenus.CodeWindow.GotoHeaderFile". Select that. In the Press Shortcut Keys field, press the keys you want to use to open the header file.
You need to use Visual Assist or write a macro.
http://www.alteridem.net/2008/02/26/visual-studio-macro-to-switch-between-cpp-and-h-files/
Is there a way to enable/disable the "View Whitespace" feature in Visual Studion on a per-filetype basis? I'd like to be able to edit python files with visible whitespace, but not other types.
Unfortunately, there is not a way to do this. The 'View White Space' setting (available from the Edit|Advanced|View White Space' menu option) is stored in the registry, which means the setting is applied to all files and all sessions of Visual Studio.
The next best thing is learn the shortcut key and toggle the feature on and off as necessary. For Visual Studio 2008, the shortcut is Ctrl+E, S.