183
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 ...
108
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 ...
97
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 ...
93
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 ...
81
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 ...
65
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 >...
44
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 ...
40
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 -> ...
36
votes
Accepted
Visual Studio Community 2015 Installation stuck on creating a system restore point
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 ...
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....
26
votes
Accepted
How to know cursor position index in an editor
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 ...
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 ...
20
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 ...
19
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 ...
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.
...
16
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".
16
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
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
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 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....
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
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 ...
12
votes
Improving/Resolving keyboard input lag with Visual Studio 2013
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 ...
12
votes
Accepted
Uninstall Visual Studio 2013 with update 4
You can try running the installer with the /uninstall /force arguments.
Try this Fix it. The page doesn't mention VS 2013 specifically but it might still help.
Reboot, try installing again and if it ...
12
votes
Visual Studio - Search through code for Chinese text
Search for Chinese characters using regular expressions in Visual Studio. The regular expression [一-龥] matches any Chinese character.
The regular expression ^.*[一-龥] matches any line containing a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
visual-studio × 822windows-10 × 99
windows × 83
visual-studio-2015 × 54
windows-7 × 51
visual-studio-2017 × 47
visual-studio-2013 × 46
visual-studio-2010 × 43
installation × 38
c# × 34
visual-studio-2012 × 33
visual-studio-2019 × 32
.net-framework × 31
c++ × 27
sql-server × 23
windows-8 × 22
macos × 21
visual-studio-code × 21
team-foundation-server × 19
git × 17
uninstall × 17
visual-studio-2008 × 17
windows-8.1 × 14
performance × 14
dll × 13