In MVC you are likely to have many views with the same name (such as Index.cshtml or Edit.aspx) for the various controllers.
Depending on your working style, you might end up with a few tabs open in Visual Studio ending up with a tablist that looks like:
Index.cshtml|Index.cshtml|SomeController.cs|Edit.cshtml|Index.cshtml|Edit.cshtml|
It is possible to hover over the tabs and wait for the context hint to show up, but I was wondering if anyone had a technique or plugin where the correct file could be more easily identified at a glance (i.e. the Index.cshtml for the SomeController)?
There may be an extension in the Visual Studio 2010 Pro Power Tools that will make your life easier. The Document Well 2010 Plus allows you to configure the document tabs.
I think http://www.tabsstudio.com/ may have the behavior you are looking for.
When you install it you should open the 'Tabs Studio Add-in Manager' and check 'Disambiguator'.
When you have different files open with the same name, it will display it's containing folder.
Home/Index.html | About/Index.html
Related
I'm writing extension for Visual Studio 2019 and I want do add or modify some controls that are in MainWindowTitleBar (compact menu option is enabled). How can I do that? Is there a service for that?
All sources about extensions focus on adding new toolboxes or menu items or use specialized services/interfaces to do certain thing but none of them talk about modifying existing interface.
You can use System.Windows.Media.VisualTreeHelper to find desired Visual Studio controls and then manipulate them as regular WPF controls.
Does anyone know how to turn off this annoying popup in Visual Studio Community 2019?
All the answers I see for it are for Visual Studio Code when I google it, which says to change it under the "File" > "Preferences" menu. Visual Studio 2019 doesn't have that menu. I just want to code without visual obstructions from my editor. Driving me nuts. Thank you!
The language is VB in ASP Classic environment.
I have turned off everything I could find that seems like it could be related to a popup under the "Options" menu, but many of the descriptions there are obscure. You could seriously make a full time job out of learning what all this stuff means.
I found an answer, however odd it may be. With #JackArbiter's help in narrowing down the possibilities, it turned out to be the file type within the environment that was the issue. I didn't realize at first that it was only a certain file extension that was creating the issue. The *.asp files behaved appropriately, but the *.inc files were the problem.
I went to "Options" > "Text Editor" > "File Extension" and added the "inc" file extension there with the editor set to Visual Basic. These files now behave the same as the asp files.
Go to Tools>Options>Text Editor>[Your markup or language] and you can adjust the intellisense settings. In your case there will be no intellisense settings listed (general HTML is what I assume to be the issue here, though you'll have to do this again probably for the language of the IF/Else code blocks) so go to HTML>General and uncheck "Auto list members" at the top.
I'm currently editing a large CSS-file in the Visual Studio 2013 editor, and would hugely benefit from a tool that hierarchically listed the content of the files I'm editing. From what I understand, the Document Outline (DO) tool in VS is supposed to achieve this, however, it never actually displays anything; regardless of the document I am editing while the DO panel is visible (CSS, C#, JS, XML etc..), it just tells that:
There are no items to show for the selected document.
First of all, is the DO the right tool for the job, and if yes, how do I get it to display my pages' content? Am I perhaps missing some dll-files?
For the reference, I am developing an asp.net-MVC application.
You may want to install the Mexedge Stylesheet Extension that displays CSS structure in Solution Explorer.
I need to modify source files while debugging my ASP.NET MVC app. I know about Edit and Continue, but it doesn't really suit me.
Basically all I need is for Visual Studio to stop making controller files "read-only". There is a similar question on SO about this problem, but the solution (unchecking "edit and continue" in Options) doesn't unlock controller files, although it unlocks all others.
I solved this problem. Anytime someone else needs to do this I just share my exported Visual Studio settings with them.
A double check of my setup shows that we have Edit and Continue unchecked in 2 places:
In Tools --> Options (visual studio)
In Web tab of the MVC project properties (last checkbox)
However there may be other settings that make it work.
We definitely do have the ability to edit any C# file (including controllers) while the debugger is attached. However, getting those changes back into the debugger requires a CTRL + SHIFT + F5.
While I was using D2007 I've really got used to Project > Project Page Options feature to keep and view some free-form project notes, external references (these almost never being comfortably viewable in built-in HTML designer) etc. Now I have Delphi XE and Project Page Options is missing from Project menu, moreover, projpageide150.bpl mentioned in the documentation is not present in bin directory. How do i fix it? I'm really finding ability to view (not edit!) HTML documents in the IDE a very convenient feature.
It looks like it was dropped but has been re-instated. In my XE2 installation the projpageide160.bpl file is there, as is the Project | Project Page options menu. Neither are present in my D2010 installation.