I've downloaded the preview version of Visual Studio 2019 and the title bar is disabled by default.
This doesn't work for me as I currently develop C# applications using multiple instances of visual studio at a time, and I like knowing what window relates to which solution, and whether I am running with elevated privileges.
I've found that I can re-enable the title bar by going to the 'Preview Features' section in options, but this will obviously not be in the real release of Visual Studio 2019.
I've searched online, but have only found feature requests to not remove the title bar.
Is there currently any way to re-enable the title bar in VS 2019 (that is not related to the preview features option)?
It appears that some time around March 2019 the option to restore the title bar through a setting in the IDE was restored. I can confirm that the option remains in the latest release and preview versions of Visual Studio as of June 2019.
Go to:
Tools > Options > Environment > Preview Features
and untick
"Use compact menu and search bar (requires restart)"
Then click "OK" and restart Visual Studio.
If the setting gets removed again, it may still be possible to fall back to editing the file CurrentSettings.vssettings. Change:
<PropertyValue name="IsMinimalVsEnabled">True</PropertyValue>
to
<PropertyValue name="IsMinimalVsEnabled">False</PropertyValue>
Look for the file in %LOCALAPPDATA%\Microsoft\VisualStudio\16.0_xxxxxxxx\Settings\CurrentSettings.vssettings (where 16.0_xxxxxxxx will be the version you have installed).
The option can be found under "Preview Features" in Options. No idea why that got into the GA release.
Just unselect the compact menu option and restart VS.
In VS 2022, this setting has moved to Tools --> Options... --> Environment --> General.
Related
How does one turn off grey suggestions in Visual Studio 2022, but keep the table below?
Depending on used version of VS 2022 (mine is 17.0.1, not preview), you can go to Tools->Options->IntelliCode and disable Show completions for whole lines of code option
Another option can be found in Controlling Whole line completions docs
Just use small button near Zoom drop-down in the left bottom corner of main editor
You can disable that "IntelliCode Code Completions" feature in Visual Studio 2022 by going to Tools ==> Options ==> Preview Features and uncheck Enable all IntelliCode preview features
See: Visual Studio IntelliCode Whole line completions
See also: https://visualstudio.microsoft.com/services/intellicode/
Note: We have several Preview features which are off by default and
can be enabled through the Tools > Options > IntelliCode page.
I want to use Angular in Visual Studio. I have currently Visual Studio 2017.
I need to install something by using the command palette, but there is not command palette in Visual Studio. I used ctrl+shift+p or ctrl+p combinations, and then nothing happened. I also checked the View section, and there is no integrated command line section or anything else.
Visual Studio 2022 has a feature similar to a command palette, called QuickLauncher. You can open it by pressing Ctrl+Q by default or change the keyboard settings to use Ctrl+P, which is what I did for my setup.
(Default Shortcuts in Visual Studio)
Command pallete only available for Visual Studio Code, https://code.visualstudio.com/. You have installed the wrong one. For Angular development I highly recommend Visual Studio Code, not the full fledged heavy Studio 2017. Please use the link I posted above.
There is GoTo All(Ctrl + Q) option in visual studio which has similar features like file search, other interesting features for code navigation, some command execution like pull, start, run tests etc.
It's not exactly the one found in Visual Studio Code(Different IDE), its getting pretty close with time.
For example there are many missing like 'start current page application' which can set in Tools -> Options -> Keyboard.
There is a ticket raised for Visual Studio to implement this feature long back and it seems it had been considered by Visual Studio team.
https://developercommunity.visualstudio.com/idea/460947/command-palette.html
How can I display the references on top of a method declaration?
I looked for it in the Visual Studio properties, but could not find it.
In Visual Studio Professional or Enterprise you can enable CodeLens by doing this:
Tools → Options → Text Editor → All Languages → CodeLens
This is not available in some Community Edition versions
For display references on the top of method you have to enabled the CodeLens option in Visual Studio Professional and Visual Studio Enterprise.
Use below steps to enabled it.
1. Go to Tools and then select Options :
2. Then Select Text Editor -> All Languages -> CodeLens
3. Click on check box to Enable Code Lens:
Now you can see the references on the top of methods.
This will not work for VS - Community Edition.
No luck with Code lens in Community editions.
Press Shift + F12 to find all references.
CodeLens is not available in the Community editions. You need Professional or higher to switch it on.
In VS2015, one way to "get" CodeLens was to install the SQL Server Developer Tools (SSDT) but I believe this has been rectified in VS2017.
Still you can get all method reference by right clicking on the method and "Find All references"
For anyone who looks at this today after 2 years, Visual Studio 2019 (Community edition as well) shows the references
In previous posts I have read that this feature is available on VS 2015 community if you first install SQL Server express (free) and then install VS. I have tried it and it worked.
I just had to reinstall Windows and am going through the same procedure now and it did not work, so I will try again. I know it worked 6 months ago when I tried.
For anyone who is looking to enable this on the Mac version, it is not available. Developers of Visual Studio stated they will include it in their roadmap.
We can Go tools => Options => Text Editor => All languages => CodeLens to find the dialog box we need. After that, the reference can work normally.
I have an ASP.NET MVC application that I'm working on in Visual Studio 2013 Premium. I have three projects that are underneath my solution. If I right-click on any of the folders that are immediately under my solution and choose add, the flyout from the context menu displays fine and Visual Studio continues to function normally.
If I right click on any (I've tried a few but not all) folder underneath one particular project in Visual Studio, it freezes for about fifteen minutes. The cpu and memory usage when this is going on seem pretty normal.
If I right click on any of the folders underneath the other two projects and choose Add I get the flyout to appear showing the types of things I can add to the folder and everything works just fine.
What I've tried:
Disabling all Visual Studio Extensions that can be disabled. This didn't fix it.
Starting an instance of Visual Studio in Safe mode, this does fix it.
Any idea what I can try next? I'd hate to have to manually uninstall all of the Visual Studio extensions that can't be disabled, but this seems like the logical next course of action.
As far as Extensions I have:
Application Insights Behaviors SDK (XAML)
Bing Dev. Assistant (Disabled, installed after problem started)
Find in Solution Explorer (Disabled)
Company-created Build Tools (Disabled)
Company-created Core Tools
Company-created Scaffolding Tools (Disabled)
Microsoft Advertising pubCenter
Microsoft Advertising SDK for Win 8.1
Microsoft Advertising SDK for WP 8.1 XAML
Microsoft ASP.NET and Web Tools
Microsoft Visual Studio ASP.NET MVC 5 Scaffolding
Nuget Package Manager
Productivity Power Tools (Disabled)
Release Management for VS 2013
TFS Server Power Tools for VS 2013
TFS Sidekicks (Disabled)
TFS Process Template Editor
TFS Team Collab.
TFS Work Item Type Designer
Unit Test Generator (Disabled)
Visual F#
VS Extensions for Windows Library for JavaScript
WP 8.1 SDK Integration
Workflow Manager Activities
I don't need the WP 8.1 stuff here at work, but dabble with it at home. Since I'm logged into my MSDN account in Visual Studio at both places, would it uninstall it from my home PC if I uninstall it at work?
I'm doing a little further exploration. On the project that has the problem, when I try to do an add to a folder, I'm seeing Nuget.exe get fired off every six seconds over and over again. Where would I look to see where this is set up? I assume in the .csproj file.
Thanks
I disabled and uninstalled a bunch of Visual Studio extensions, which didn't help. I then cleared my nuget cache and that solved my problem.
I had exactly the same problem apparently, in my case it was a reference problem try deleting them one by one until the it starts responding in real time, i suggest starting with 3rd party dlls.
How do I switch between debug and release in Visual C# 2010 Express?
I have looked in the project properties, but it seems to be missing. What am I missing?
Enable the Tools → Settings → Expert Settings menu option
Go to Tools → Options
In the dialog box, check Show All Settings option in the bottom left.
In the above dialog, now choose Projects and Solutions → General.
Check the option Show advanced build configurations.
Click OK.
You should be able to see the Release/Debug options in the toolbar now.
Heh, that one baffled me too when I first installed Visual C# Express 2010. It turns out Microsoft has added a "Basic settings" mode to the Express editions that is selected by default.
You can change to "Expert settings" mode in the Tools menu, after that, the Debug/Release combo will be back.
Most IDE settings (window docking locations, font settings, etc.) seem to be kept in separate profiles between basic and expert mode, so you'll have to arrange your tool windows again and so on.
I'm sure there's some obscure way that I don't remember... what I do know is that if you click "Build" it will build the Release version, but if you click "Start Debugging" it will build the Debug version. So if you just want to be able to get the output from both versions, that should sort it for you.
You can follow these steps for visual studio 2010 professional edition.
Go to Tools -> Customize .
Select Commands Tab.
Select ToolBar and then Build from combobox.
Click on Add Command Button.
Select Build from Categories and then select Solution Configurations from Commands.
This is really strange. I've installed Windows 7 Pro x64, then I installed Visual C# 2010 Express and I couldn't find it at all. No matter how I built, it always produced Debug version. I could press F6 or press Build button and it still produced Debug version and I don't have any select box with Debug/Release to choose.
Finally I found it. I can change it by clicking my Soulution in Solution Explorer window and then in Properties window under Active Config.
The last answer by prostynick was the final clue.
I am using visual studio 2010 express.
First you need to have the advanced setting checked Tools ---> Settings
Next is solution explorer double left click or single right click "My Project" to open the project.
You get a large screen with application, compile, debug ... menu on the side
Select Compile
Look at "Build Output path:
It is probably pointing at bin\Debug folder.
Changing this will change where output from a build goes