143

Quit devenv Launch Visual Studio Installer Modify VS2017 Click on the Individual components tab and scroll down to LINQ to SQL tools (within Code tools group.) Click Modify. Launch devenv again and you should be able to open .dbml in the designer we all love to hate.


91

You can use the command prompt to terminate processes: Open the Run box using Windows+R. Type cmd in the Run box and click Enter. Use the command tasklist to list all processes. Use the command taskkill /F /IM "executable name.exe" /T to terminate the process.


90

Try the following: Open the Task Manager by pressing Ctrl+Shift+Esc Navigate using the arrow keys (↓ and ↑) to highlight the problematic process Press the Delete key to kill the process If necessary, acknowledge the subsequent prompt by selecting the appropriate choice with the arrow keys (← or →) and press Enter


82

Step 1) First run dotnet --list-sdks from the command line (as in Grzegorz Smulko's answer). Take note of the greatest version number. Step 2) Create a global.json file at the root of the solution with the exact version number from step 1. it needs to contain all the digits otherwise it wont work. This is the my version at the time of writing { "sdk": { ...


59

If you got here looking for an answer for Visual Studio Code the default shortcut is: ctrl + shift + K for Windows ⌘ + shift + K for MacOS However, you can change on File > Preferences > Keyboard shortcuts { "key": "ctrl+shift+delete", "command": "editor.action.deleteLines", "when": "editorTextFocus && !editorReadonly" } For ...


51

The Only way I'm aware of which ensures it will always open as Administrator (including when you open from file associations, jump list etc) is: Locate the devenv.exe file in Explorer eg mine is in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ Right-click devenv.exe and choose "Troubleshoot compatibility" Select "Troubleshoot program" ...


49

A similar case on Microsoft Community mentioned a workaround, have a try. Start Control Panel --> Device Manager Select View --> Show hidden devices Expand Computer --> Monitors When you expand the Monitors you will see your current monitor (highlighted) and all the disconnected monitors (greyed out). You may see monitors with "non-PNP" and "PNP" listed ...


47

You can't make it toggle without going into either a macro or other VS extension. However, I always setup VS to comment with Ctrl + / and uncomment to Ctrl + Shift + / You can customize the keyboard shortcuts by going int the "Tools" menu and selecting "Options". Then select "Keyboard" from the "Environment" branch. From there you can bind the Edit....


42

The above answers didn't help me; I couldn't install it through the extension manager and there was not default application for .vsix. However, I needed to open it (right click > Open with...) with Microsoft Visual Studio Version Selector and it worked. Small update: For VS 2013, you need the corresponding version of NuGet: http://visualstudiogallery.msdn....


41

Download and install the latest .NET Framework. For example, you can use the installer for the .NET Framework 4.5 installer. Open a command prompt and change into the installation directory of the .NET Framework. For example: cd \Windows\Microsoft.NET\Framework\v4* Use MSBuild.exe to compile your solution. For example: msbuild "C:\Users\Oliver\Documents\...


40

Here is a plugin to have the almighty "Toggle Comment" command... 1- Download and Install > https://marketplace.visualstudio.com/items?itemName=munyabe.ToggleComment 2- Restart VS 3- Go to "Tools > Options... > Environment > Keyboard" 4- Search for the command "ToggleComment" & Bind it to your favorite key 5- Enjoy (Thank you, I had gave up but ...


35

I had the same problem during installation VS2015 on Windows 10. I solved the problem by killing the svchost.exe process that blocked the installation: Go to the Task Manager details tab Find vs_community.exe Open the Analyze wait chain, Check svchost.exe and kill it. It will stop creating the system restore point, but will resume the installation.


32

This answer is originally from here, and I am just reproducing it here for sake of brevity. Use the Windows Registry editor to delete two keys: HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode HKEY_CLASSES_ROOT\Directory\shell\AnyCode You may want to back up your registries before going for a delete operation, just a good practice.


31

Short answer Just leave them alone. Long answer It is not safe to uninstall them: all Microsoft Visual C++ Redistributable Packages include libraries required to run C++ applications that are built by using Visual Studio. If they're installed it means some programs required them in order to work. In case you were wondering, you can't uninstall say, the 2005 ...


28

If you have ReSharper installed (and using VS without it is/was tedious), you can assign a single key to the command ReSharper.ReSharper_LineComment. For instance, I bind the keyboard shortcut Ctrl-K, Ctrl-C to the command, and then if I use it on a line that is uncommented, it comments it, and if the line is commented, it will uncomment it.


27

Run regedit.exe, go to HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode, take ownership of this key, change the permisions for your account and add a DWORD (32Bit) with the name HideBasedOnVelocityId and set the value to 006698a6 (hex): When you now do a rightclick the entry is gone: Delete entry or rename it to ShowBasedOnVelocityId to enable the ...


26

Right click on the "Metro" Icon for Visual Studio 2012 Click "Open File Location". It will put you into the classic windows desktop with the shortcut for Visual Studio. Right-Click on that shortcut and go to "Properties" Click "Advanced" Check "Run as Administrator" and click OK. From now on, it will always launch as Administrator with elevated privileges. ...


26

I need to know the index of the cursor. For example, instead of line 4 column 23, I want to know that I'm at the 256th character in the file.** Notepad++ already has the feature you are looking for. Select all characters from the current cursor position to the start of the file using ctrl+shift+home Look at the status bar where it says "Sel: characters|...


25

In case anyone else having the same question visited here, please visit the official guide. The following is quoted from the original guide which was updated at 2017-4-14. Uninstall Visual Studio for Mac App Step 1. Locate Visual Studio.app in the /Applications directory and drag it to the Trash Can. Alternatively, right-click and select Move ...


23

I have found the solution. It was caused by a default setting in Productivity Power Tools add-on.


22

I had a similar thing happen with Visual Studio being stuck as always on top. It started happening after I hit the Windows key followed by a bunch of arrow/home/end/pageup/pagedn keystrokes by accident (I had meant to use the control key). What seemed to clear the always-on-top behavior was to select a different application (eg: Chrome), then press Windows-...


22

Try running dotnet --list-sdks in the console. According to the info on the pages that appear after downloading .NET Core SDKs from https://dotnet.microsoft.com/download, you need to have version v2.2.106 for VS2017 and v2.2.203 for VS2019. With only the v2.2.203 installed projects didn't load for me in VS2019. I had to install v2.2.105 too.


19

Do this: right click on file which you wish to open. Then Open with application and choose HTML (Web Forms) Editor Set as default (on right side) if you wish.


17

If for some reason Solution explorer is closed, you can reopen it from the view menu, or with the key command Ctrl + Alt + L. Also note visual studio changes window preference sets when going into debug mode (similar to the Eclipse "Perspective" switch, but less jarring), so if you closed it both in normal/design mode and in debug mode, you would likely ...


17

The Collector Process appears to be related to instrumentation/diagnostics of code running in debug mode, in Visual Studio 2015. Microsoft has acknowledged there is an issue with unbounded memory use of this process, and says, We have researched the root cause and have made a fix that will be provided in VS2015 Update 1 So make sure you get the latest ...


16

It can be best explained by the following description. A multi-targeting pack, or MT pack, is a set of reference assemblies that corresponds to a particular .NET Framework platform and version. A reference assembly is a .NET Framework assembly that typically has no method bodies and no internal or private APIs. Reference assemblies contain just ...


15

I work on Xamarin Components Team with nuget on a daily basis. Install mono and use: mono nuget.exe It is possible to install nuget via brew too: brew install nuget


13

it is possible to reduce the excessive quantity of paths in the environment variables PATH , just save the whole line out to a notepad, as a backup and remove some and test. Most of them are there so if a shortcut does not have a full path set for the "Target", If the "Start In" is not set in the shortcut correctly or a launch is done oddly their program ...


12

If all the above options fail, try installing it from the VS Developer command-line. Here's how (on StackOverflow): How to install Visual Studio Gallery extensions from command line VSIXInstaller.exe /quiet some_extension.vsix You can find VSIXInstaller here (on your local PC - depending on the Visual Studio version replace 14.0 by the version you're ...


12

I also experienced serious keyboard lag when typing with VS2013. For me, things got much better by uninstalling one particular plugin: Tools --> Extensions and Updates --> Uninstall Application Insights I don't remember installing this plugin, but it's called Application Insights Tools for Visual Studio. The referenced page mentions that this ...


Only top voted, non community-wiki answers of a minimum length are eligible