Questions tagged [visual-studio]

For questions about Microsoft Visual Studio that are not specific to a particular version. For version-specific questions, use the associated version-specific tag. Questions about Visual Studio cloud collaboration tools (Team Services, previously Visual Studio Online), may be a better fit on http://webapps.stackexchange.com/.

Visual Studio is Microsoft's IDE (integrated development environment) offering for developing on its platforms, such as Windows, Windows Phone and Xbox. Out of the box, it supports C++, C#, VB.NET and F# for programming, as well as XML/XSLT, HTML, CSS and JavaScript for web development. Many other languages are available separately.

851 questions
167
votes
9 answers

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

I'm using latest Windows 10. I have dual monitors and am working on software development. I move Visual Studio to second monitor to work on it. When I lock wndows and leave computer and go somewhere and come back after 20-30 min both laptop and…
Can
  • 1,781
148
votes
12 answers

Delete a line in Visual Studio without copying it?

There is the shortcut Shift+Del to delete a line, but I want to delete the line without modifying what is in the clipboard. Is there some way to configure it or another shortcut?
BrunoLM
  • 5,982
135
votes
11 answers

How do I install a VSIX file in Visual Studio?

I just downloaded a VSIX file from the Visual Studio Gallery. How do I install it in Visual Studio?
KdgDev
  • 5,758
103
votes
1 answer

How to open .dbml in designer mode with VS?

After installing Visual Studio 2017, my LINQ To SQL .dbml definitions open in a XML editor instead of the built in designer. How do I configure VS to open .dbml in Designer mode instead of XML editor?
Drag and Drop
  • 1,247
  • 3
  • 9
  • 12
101
votes
12 answers

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

How can I make CTRL + / toggle a comment in Visual Studio, as it does with XCode and Eclipse?
Marc
  • 1,113
93
votes
3 answers

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

When I have an open code file in Visual Studio that I am editing I would like to keep that same file highlighted inside of the solution Explorer so that I know where I am at. What I'd really like is to change the focus to a different code file and…
thepaulpage
  • 1,670
79
votes
6 answers

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

I have installed Visual Studio Community 2017 RC on Windows 10. After installing, it added a new context menu when right clicked on any directory. I want to remove this option, but can't seem to find it from VS2017 settings.
68
votes
14 answers

Visual Studio 2019 unable to locate .Net Core SDK

I'm following this tutorial - Share Azure Spatial Anchors across sessions and devices - at Microsoft Docs. It requires I open a project in VS, but when I try to open it I get the following error: error : The project file cannot be opened by the…
muz
  • 781
60
votes
11 answers

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

I'm trying to debug a Visual Studio C# Windows application that immediately takes over the desktop and disables mouse control. When it freezes, I need to be able to stop it somehow. I can press the windows key or ctrl-alt-delete and access the…
Kyle Delaney
  • 1,275
56
votes
11 answers

Why does Visual Studio run in "Always on top" mode?

My copy of Visual Studio seems to be set in "Always On Top" Mode. It runs this way by default; there seems to be no way of changing it. Visual Studio runs as Administrator/Elevated, but that really shouldn't affect whether or not Visual Studio runs…
SomeUser
  • 561
51
votes
3 answers

How can I compile a .NET project without having Visual Studio installed?

I want to compile a .NET/C# project, but I don't want to install Visual Studio to do this. What tools do I need and how can I compile the project?
Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
49
votes
11 answers

Speed of TrueCrypt whole disk encryption

I'm getting a new development laptop soon, and I'm thinking of using TrueCrypt to encrypt the whole disk. What kind of performance drop can I expect? 10%? 30%? More? Also, assuming the workload has an effect, would compiling/using Visual Studio be…
Gareth
  • 631
47
votes
2 answers

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

Hopefully this is the right stack exchange site to post on... Didn't feel like it was a programming question for SO. Anyway, I'm running Visual Studio 2015 and got a notification to from Windows to close VS2015 because it's running low on memory. I…
C. Tewalt
  • 702
37
votes
8 answers

Always start Visual Studio as an Administrator on Windows 8

Whenever I start Visual Studio 2012 in Windows 8 it always needs Administrator permissions to access IIS meta data and debug local web applications on IIS. If I turn UAC off, I cannot launch the Windows 8 simulator! Does anyone know how I can get it…
Boomerangertanger
  • 495
  • 1
  • 4
  • 7
35
votes
10 answers

Why sometimes Windows cannot kill a process?

Right now I'm trying to Run/Debug my application in Visual Studio, but it cannot create it because the last instance of the app.vshost.exe is still running. Then, by using the Task Manager I'm trying to kill it, but it just remains there with no…
1
2 3
56 57