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 ...
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 ...
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 ...
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 > ...
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 ...
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 ...
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
...
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 >...
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 ...
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 -> ...
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....
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 ...
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".
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 ...
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 ...
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.
...
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
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 ...
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.
...
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....
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 ...
14
votes
Delete a line in Visual Studio without copying it?
Ctrl + Shift + K
will work fine for both Windows and Linux.
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 ...
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\...
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:
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 ...
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 ...
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.
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
visual-studio × 842windows-10 × 100
windows × 81
visual-studio-2015 × 54
windows-7 × 51
visual-studio-2017 × 48
visual-studio-2013 × 46
visual-studio-2010 × 43
installation × 39
c# × 35
visual-studio-2012 × 33
visual-studio-2019 × 33
.net-framework × 30
c++ × 27
sql-server × 23
macos × 22
windows-8 × 22
visual-studio-code × 22
team-foundation-server × 19
git × 17
visual-studio-2008 × 17
uninstall × 16
visual-studio-2022 × 15
windows-8.1 × 14
performance × 14