ViewPoint Control does not behave as expected [helix-3d-toolkit] - helix-3d-toolkit

I have built successfully some of the examples (teapot, torus, tube). I have three questions related to all of them.
I can use the zoom control by keyboard+mouse Cntrl+RightClick
combination. However, when I use the Cntrl+LeftClick for adhusting
ViewPoint, the ViewPoint jumps to top view and cannot be changed
afterwards in all examples. Perhaps this issue is related to
questions below.
All examples refer to an assembly called "ExampleBrowser". I had
to comment out in the cs file as I cannot find this assembly. Could
you please let me know how to fix this problem. I am using Visual
Studio (VS) 2017.
In all examples I tried, there is a line like: [Example(null, "Shows Borromean rings using the TubeVisual3D.")] which causes VS to give error. I had to comment out this line too. Could somebody let me know the reason this line is not accepted by VS?

Related

Visual Studio light bulb no longer shows "Fix format"

Microsoft Visual Studio Community 2019
Using C#, this is about what appears in the light bulb tips...
I used to be offered a Quick Action (QA) to fix the format, but that QA no long appears.
For example, a QA used to appear when I had no spacing around binary operators, like this:
if (File.Exists(subsFile)&&(subsFile.Length>5))
It would correct to:
if (File.Exists(subsFile) && (subsFile.Length > 5))
The problem started when I clicked on a QA that I was curious about (but I cannot remember what it was). I assumed there would be a simple way to undo whatever effect it had, but I was wrong.
If I do Ctrl-K Ctrl-D, then the line would be corrected as above.
I have checked the options in the Tools>Options... menu, and the spacing seems to be correct.
I have looked carefully through the Code Styles options, but nothing seems to apply.
I have searched the web at length, including Microsoft and, of course, stackoverflow, and found nothing to help.
It is annoying that I cannot use a feature supplied by Microsoft to help novices like me.
Can anyone help, please?
Solved: Not a serious problem, but it annoyed me so much that I ran Visual Studio Installer and chose the Repair option. (It's on the Start menu in Windows 10.) This didn't solve the problem on its own, and may not have been necessary for the solution.
Next I had a look at the file .editorconfig (found in Solution Explorer). Previously when I considered this, it seemed to entail a huge learning overhead, and it scared me off, but this time I spotted this line in the file:
dotnet_analyzer_diagnostic.category-Style.severity = none
When I changed this to:
dotnet_analyzer_diagnostic.category-Style.severity = severity
and saved the file, the problem went away like magic.
I don't know enough to explain why this worked.

Display CodeLens above attributes

It is quite annoying to see codelens reference between the field and field's attributes. It requires to add a lot of additional spaces around to make everything readable. Is it possible to display CodeLens reference above the attributes?
No, this is currently not possible.
If you'd like to see this, I suggest you give the product team a shout-out on the Visual Studio UserVoice and post back the link as a comment to this answer. I'd suggest not to move the code lens information, but to suggest the location to be made configurable :).
Though I can't disclose any details, I've seen your feedback before and I know it has been considered, but rejected.
This is an old question but as an update to #jessehouwing this is Visual Studio team answer:
Dear supporters for this suggestion
Thank you for your feedback on this idea.
We designed the Code Lens indicator to be as close to the actual
function declaration as possible, to allow you to make a better
cognitive connection with it. At one point during the development of
Code Lens, we actually tried locating it above the attributes as this
suggestion requests. It looked great in simple cases, but
unfortunately it started to feel “disconnected” from the declaration
when more attributes were added. It really looked strange at around
three attributes, but started feeling a bit odd around two.
Here’s a pathological “real world” case which illustrates this -
https://github.com/dotnet/roslyn/blob/master/src/VisualStudio/CSharp/Impl/CSharpPackage.cs#L26
Imagine the indicator above the attributes in this case.
For this reason, we’re declining this suggestion at present.
Thanks! Mark Wilson-Thomas Program Manager, Visual Studio Editor Team
So sadly it won't be fixed, but after reading the whole answer, I have to agree.

Snippet Designer/Editor for Visual Studio 2010

What Editors/Designers for creating Visual Studio 2010 Snippets are there?
I would like to be able to put in different replacements (ie spots where the text should be replaced). A low incidence of blocking bugs is also nice.
So far the only one I have seen is Snippet Editor 2.1. I am going to dig into it and see how it works, but I did not want to spend too much time on that app if there is a better one out there.
I like Snippet Designer by Matt Manela and chose to use it in my Extending Visual Studio course. I like the Snippet Explorer and searching snippets as well as the designer view to help you edit them, including replacements. It also gives you a nice Export as Snippet context menu item. And the code is on CodePlex if you would like to learn how it's done.
Go to the Visual Studio Gallery and search for "snippet" in the "Find" box. You should find several options (e.g. Snippet Designer, Snipper, etc.). I haven't used any of these so I can't attest to how good they may be but at least it's a start.
Hope this helps.
Resharper (not free) has it's own snippet system which is really great. I'm adding this answer because I was searching for something not realising I already had something installed (Resharper)

Is there anything like Eclipse Perspective in Visual Studio?

I was wondering if there's anything like Eclipse Perspectives in Visual Studio (2008 or 2010).
For those unfamiliar with Eclipse, here's a definition of Perspectives:
A perspective is a visual container
for a set of views and editors
(parts). These parts exist wholly
within the perspective and are not
shared. A perspective is also like a
page within a book. It exists within
a window along with any number of
other perspectives and, like a page
within a book, only one perspective is
visible at any time.
Let me give you a visual example:
Java Perspective:
SVN Repository Perspective:
Maybe there is nothing like that straight out of the box, but with some plugin. If that's the case, it'll also be a valid answer.
Thanks for your time.
I used Brian's blog post as a starting point and made a VS2010 extension: http://perspectives.codeplex.com/
More info here: http://csharpening.net/blog/?p=292
It's probably not as complete as the VSWindowManager but lets you save your configurations and create new ones. Let me know if it works out!
I found this http://vswindowmanager.codeplex.com/ but it's for 2005.. there is a branch for 2008 in the source code but i don't know if it works... I think I'll give it a try and post any results...
It would be great if it works also for 2010!!! When you work in 1024*768 it's really annoying to rezise the windows every two seconds!!!
Good luck!!
You can check out my blog post which provides the ability to list and switch window layouts in Vs2008 and Vs2010: http://www.brianschmitt.com/2010/09/save-and-change-tool-layout-in-visual.html

Where are the explanations to warnings of VS 2005 Code Analyses tool?

Does anyone know where to find an explanation to the warnings in VS 2005 Code Analyses tool. I would like some documentation, explaining why it creates the warnings it does and what course of action one should take.
You should be able to right click the warnings it gives you in the Error List and view Error Help, right from within Visual Studio. There's also a section of MSDN articles, if you'd prefer.
I'm not sure which codeanalysis tool you are referring to.
If you mean FxCop, look here: http://msdn.microsoft.com/en-us/library/bb429379(VS.80).aspx
If you mean StyleCop, see the download here: http://code.msdn.microsoft.com/sourceanalysis/Release/ProjectReleases.aspx?ReleaseId=1425

Resources