As of May 31, 2023, we have updated our Code of Conduct.
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 ...
Coxy's user avatar
  • 2,121
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 ...
Max Carroll's user avatar
  • 1,181
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 ...
MJ9's user avatar
  • 1,050
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 > ...
BrunoLM's user avatar
  • 5,434
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
  • 15.7k
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 ...
Origami 's user avatar
  • 1,971
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 ...
Blaze's user avatar
  • 753
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
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 ...
magicandre1981's user avatar
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 -> ...
dibarbet's user avatar
  • 516
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 ...
lk.'s user avatar
  • 476
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
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 ...
DavidPostill's user avatar
  • 152k
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
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 ...
Developer63's user avatar
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 ...
Stevoisiak's user avatar
  • 13.3k
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
  • 41.4k
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".
Sumit Joshi's user avatar
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
moljac's user avatar
  • 316
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

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 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
  • 354
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
  • 5,941
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
  • 41.4k
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 ...
L84's user avatar
  • 3,801
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 ...
Chris O's user avatar
  • 279
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 ...
Karan's user avatar
  • 55.8k
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 ...
karel's user avatar
  • 13.3k

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