I'm sure I used to be able to see the name of the current class and method when editing vb.net files - I can't see anything similar in VS 2015 Update 3.
Does anyone know if there's a plugin that would show me this info? Being able to see the name of the current region would be brilliant, too.
Thanks.
You don't need a plug-in; this feature is built into Visual Studio and has been since at least VS 2005. (Actually, it originated in the classic Visual Basic editor and was ported over to Visual Studio when the IDEs were integrated.) I'm not sure how it got disabled on your machine, since it is enabled by default.
Go to Tools → Options → Text Editor → Basic (or any language you want), and ensure that the "Navigation bar" option at the bottom is checked.
This will give you a bar at the top of your text editor window that displays the class and method names. It doesn't, however, display the region.
You can see the current region in "Visual Assist" extension.
You should download it from Nuget.(Tools --> Extension And Updates and then search the Visual Assist).
After you'll install it, You'll see a new tab called: "VA Outline" it's located near the Solution Explorer tab.
Related
In Visual Studio 2022, when trying to refactor a C# class you are prompted whether or not you also want to "Rename symbol's file." You must now manually enable this feature each time you restart the IDE, but it used to be the feature was enabled by default. Does anyone know how to enable this by default even after restarting the IDE?
I tried searching the options menu, Microsoft docs, and Stack Overflow, but have found no trace of enabling this feature be default.
I just looked at the most recent update for Visual Studio 2022 and they updated the rename tool. When I used it, the default for me was "Rename Symbol's file" was checked for me. I did not see a way to set or unset it as a default but once you get the update it may now be defaulted.
I have a related question about why someone would not want to do this here (Visual Studio Inline Rename feature, is there a good reason not to also rename symbol files?)
Using Visual Studio Professional 2017 (Release 15.2 26430.16), when I open a xaml file for a desktop UI that I have developed, I can no longer see the xaml designer (I only see the raw xaml code). This is new behaviour and may be due to me having a system clean-out, so maybe I removed an SDK that I need or something like that?
Are there any Visual Studio error logs I can check for warnings etc?
Frankly, your situation is different than mine. In my situation, it was because of Resharper. Maybe this may useful for someone else.
What to do is checking Resharper Options > Enviroment > Performance Guide > Disable XAML Designer.
It must be set to "Ignore" or "Show in Status Bar". Otherwise, it will always disable XAML Designer.
In the Visual Studio 2017 Installer, I selected all of the SDKs and installed the missing ones. This did not fix the problem by itself, but a subsequent 'repair' from the Visual Studio 2017 Installer (available from the 'hamburger' drop-down) did.
Sometimes, adding or removing SDKs from the Installer toggles the 'Enable XAML Designer' check box under Tools -> Options -> XAML Designer -> General (or perhaps it was the repair step that turned this back on), so ensure that this is checked.
Make sure XAML Designer is enabled.
Tools -> Options -> XAML Designer -> General -> Enable XAML Designer
I couldn't get the designer to work, but I found an alternate solution posted here, posted by #DamianSuess
Use the View > Other Windows > Xamarin.Forms Previewer menu in
Visual Studio to open the preview window. Use the Window > New
Vertical Tab Group menu to position it side-by-side.
forms-not-show-in-visual-studio
I know this issue is tagged as WPF but I had a similar issue for Xamarin Forms.
What solved this issue for me:
Right Click the xaml file
Select "Open With..."
Select Xamarin.Forms Previewer
Click OK
Optionally, you can set the Xamarin.Forms Previewer as the default for xaml files
make sure you have correctly installed the Windows 10 SDK, there are 3-4 versions of the SDK, the error you are talking about can also be a consequence of a incompatible sdk,
also reinstall the sdk related to your app, close every process related to Visual studio running in background while reinstalling the SDK.
Can you share a screenshot of the xaml designer page?
I had the same, I found that opening the XAML in VS community did not work. However, if I choose file -> open -> project/solution and open the corresponding sln file, it works.
i need to develop a Visual Studio Extension, but even if looked around i didn't find a sample on how reference VS tool window (in my case pending changes) to customize it and add some extra features.
Could someone maybe give a an hint or url where i can look for this ?
Thanks in advance
Since you pending changes is a Team Explorer Tool Window, If you want to add custom button to Team Explorer, please refer to:
https://social.msdn.microsoft.com/Forums/en-US/198f36bf-0606-4b99-b736-1a786cdf5183/how-to-add-a-custom-button-in-teamexplorer-queryresultgrid-toolbar-and-workitem-toolbar?forum=vsx
If you want to add other features, I would suggest that you can create a custom tool window, add the feathers as you want, Get the Pending Changes information via IPendingChangesExt , and here is a sample about HOWTO: Get the Pending Changes in the Team Explorer of Visual Studio from a package
Visual Studio 2013 introduced a new feature where it shows you how many times each of your methods are used.
I don't find it very useful, and it messes up the spacing of my file. How do I disable it? Can't seem to find the option.
I guess you probably are running the preview of VS2013 Ultimate, because it is not present in my professional preview. But looking online I found that the feature is called Code Information Indicators or CodeLens, and can be located under
Tools → Options → Text Editor → All Languages → CodeLens
(for RC/final version)
or
Tools → Options → Text Editor → All Languages → Code Information Indicators
(for preview version)
That was according to this link. It seems to be pretty well hidden.
In Visual Studio 2013 RTM, you can also get to the CodeLens options by right clicking the indicators themselves in the editor:
documented in the Q&A section of the msdn CodeLens documentation
Another option is to use mouse, right click on "x reference". Context menu "CodeLens Options" will appear, saving all the navigation headache.
Workaround....
In VS 2015 Professional (and probably other versions).
Go to Tools / Options / Environment / Fonts and Colours.
In the "Show Settings For" drop-down, select "CodeLens"
Choose the smallest font you can find e.g. Calibri 6.
Change the foreground colour to your editor foreground colour (say "White")
Click OK.
The other features of CodeLens like: Show Bugs, Show Test Status, etc (other than Show Reference) might be useful.
However, if the only way to disable Show References is to disable CodeLens altogether.
Then, I guess I could do just that.
Furthermore, I would do like I always have, 'right-click on a member and choose Find all References or Ctrl+K, R'
If I wanted to know what references the member -- I too like not having any extra information crammed into my code, like extra white-space.
In short, uncheck Codelens...
In VSCode for Mac (0.10.6) I opened "Preferences -> User Settings" and placed the following code in the settings.json file
"editor.referenceInfos": false
User and Workspace Settings
I downloaded the new Visual Studio 2015 CTP6 to test the new XAML debugging features - but I can't find them? I've read that those windows should open right after starting the debugging but they do not appear - anyone know what I'm doing wrong?
Debug –> Windows –> Live Visual Tree | Live Property Explorer
In any case you cannot see them, check options.
See here for more details on Inspect XAML properties while debugging property.
This feature should be accessible in CTP6 in menu via Debug -> Windows -> Live Visual Tree
Had the same problem with VS2017 - which has new 'Live editing' of XAML that instantly is reflected in your running application.
First make sure you actually have XAML under text editor
If it isn't there (and you can't even open a XAML file in designer mode) you have other problems. You may need to repair or reset VS.
Will report back solution if I figure it out.