185 votes
Accepted

How to open .dbml in designer mode with VS?

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 ...
Coxy's user avatar
  • 2,137
109 votes

Visual Studio 2019 unable to locate .Net Core SDK

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 ...
Max Carroll's user avatar
  • 1,191
99 votes
Accepted

How can I force stop a program without using the mouse in Windows 10?

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 ...
MJ9's user avatar
  • 1,070
97 votes

Delete a line in Visual Studio without copying it?

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 > ...
BrunoLM's user avatar
  • 5,694
92 votes

How can I force stop a program without using the mouse in Windows 10?

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 ...
Run5k's user avatar
  • 16k
86 votes
Accepted

Windows on second monitor moves to primary monitor after sleep/lock

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 ...
Origami 's user avatar
  • 2,089
71 votes

How to remove directory context menu added by Visual Studio 2017?

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 ...
Blaze's user avatar
  • 813
48 votes

How to make CTRL + / toggle a comment in Visual Studio

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 >...
zcharles's user avatar
  • 581
47 votes
Accepted

How to remove directory context menu added by Visual Studio 2017?

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 ...
magicandre1981's user avatar
44 votes
Accepted

How to make CTRL + / toggle a comment in Visual Studio

Toggle single line comment and toggle block comment commands have been added in VS 2019 for C# You can change the shortcut for these commands to whatever you want in Tools -> Options -> ...
dibarbet's user avatar
  • 556
27 votes

Visual Studio 2019 unable to locate .Net Core SDK

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....
Grzegorz Smulko's user avatar
25 votes

How to completely remove Visual Studio from mac?

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 ...
lowatt's user avatar
  • 350
23 votes

What is the Visual Studio Standard Collector process, and why does it use 10GB of RAM?

Disable the service and it won't eat your memory again. Tools->Options->Debugging->General, disable "Enable Diagnostic Tools while debugging".
Sumit Joshi's user avatar
23 votes

How to remove directory context menu added by Visual Studio 2017?

From Bryson Gibbons on the Microsoft Forums: Another option, if you don't want to just delete it or can see it being sometimes useful but don't want it cluttering up the context menu, is to move it ...
Stevoisiak's user avatar
  • 14.4k
22 votes
Accepted

What is the Visual Studio Standard Collector process, and why does it use 10GB of RAM?

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 ...
Developer63's user avatar
18 votes
Accepted

What is .NET Multi-Targeting Pack?

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. ...
Ramhound's user avatar
  • 42.8k
18 votes
Accepted

Is it possible to install NuGet on a Mac?

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
moljac's user avatar
  • 346
18 votes

Windows on second monitor moves to primary monitor after sleep/lock

I ran into a similar issue and the answers that were provided here did not resolve the issue. After a few searches, I found a GitHub app that did resolve it. Take a look at PersistentWindows. So far ...
L84's user avatar
  • 3,871
16 votes

Visual Studio 2019 unable to locate .Net Core SDK

I fixed it by installing the x86 version of the SDK. It looks like each version of Visual Studio has it's own corresponding dotnet version that it builds on. This is due to msbuild requirements. ...
soniiic's user avatar
  • 346
15 votes

How do I install a VSIX file in Visual Studio?

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....
Matt's user avatar
  • 394
15 votes

Visual Studio 2019 unable to locate .Net Core SDK

I had this problem because I uninstalled some older dotnet SDKs. Not only would VS2019 no longer load dotnet core projects, but dotnet was no longer available on my path and so not available on the ...
Jason's user avatar
  • 251
14 votes

Delete a line in Visual Studio without copying it?

Ctrl + Shift + K will work fine for both Windows and Linux.
Arun Kumar N's user avatar
14 votes

VisualStudio installs "Shared components, tools, and SDKs" only on C: drive

If anyone is having the issue of changing this path then I have found the answer. Type "regedit" in the search on your Windows 10 PC (or in your run if lower version I think) Navigate to the ...
FairyTazzy's user avatar
13 votes

How to get the Visual Studio installation path in a batch file

Use vswhere utility which is a part of VS bundle (officially), but can also be used apart of MSVC. > vswhere.exe -latest -property installationPath C:\Program Files (x86)\Microsoft Visual Studio\...
Dmitry's user avatar
  • 241
13 votes

How to know cursor position index in an editor

Press Ctrl+G and click the Offset radio button. Your cursor position will be shown in the You are here: line Example:
Tyler Durden's user avatar
  • 6,121
13 votes
Accepted

Visual Studio doesn't recognize .NET Framework 4.6.2 is installed

I've installed .NET Framework 4.6.2 via the web installer, and everything looked good. However, after I restarted and opened up Visual Studio, it reported that 4.6.2 was not installed: You ...
Ramhound's user avatar
  • 42.8k
13 votes
Accepted

How to fully reset all Visual Studio settings to factory defaults?

There are 2 switches that you can try to restore the settings to default from the command line: /ResetSettings: Restores Visual Studio default settings /ResetUserData: not documented, but it resets ...
Reddy Lutonadio's user avatar
12 votes

How do I sync the Solution Explorer with the current File in Visual Studio?

"CTL + '[', S" will synchronize the solution explorer with the file in the current edit window.
Metro's user avatar
  • 261
12 votes

How to completely remove Visual Studio from mac?

May be this would be better solution (no need to follow each step): https://raw.githubusercontent.com/MicrosoftDocs/visualstudio-docs/master/mac/resources/uninstall-vsmac.sh : #!/bin/sh # Uninstall ...
Brainiac's user avatar
  • 121
12 votes

How can I force stop a program without using the mouse in Windows 10?

A slight modification of the Taskkill answer: You can use wildcard if you don't remember/know the exact full name of the process, like so: taskkill /f /im badproce* It will kill all executables ...
user1306322's user avatar
  • 4,776

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