Is it possible to have Visual Studio's Class View pane (available under View > Class View) automatically synchronize to current symbol? Basically execute View.SynchronizeClassView whenever the current symbol changes.
See here and here. I find your phrasing more along the lines of what I would have asked. Not sure why you didn't get any answers.
As it seems, an automatic synchronize (without hotkey) will not be implemented.
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/15963322-sync-class-view-with-code
I want to personally thank you for taking the time to share this
suggestion. Since the suggestion you raised has not gathered many
votes, the Visual Studio IDE team is prioritizing other suggestions
and closing it at this time.
If you would like us to reconsider this, please create a new
suggestion. Again, thank you for sharing with us!
Related
Doing my best not to duplicate a question, but I'm coming up with nada on this one. So in a nutshell, lets say we are in Visual Studio 2019 within an SSIS project, and I drag a SQL Task onto the design surface of my package. There is a default name of "Execute SQL Task". Is there a way to modify the default name applied during design time so I can prepopulate with best practice prefixes, i.e. from https://gallery.technet.microsoft.com/SSIS-Component-Naming-44cd39bc
I have found no solutions at this point other than editing each task manually like we all typically do - looking to see if this is a shortcut to prefill best practices.
No applicable code to show on this.
you have to manually edit each task. Microsoft doesn't handle this as each organisation has its own coding standard. So the best Microsoft can do to enter the task with default name which can be edited by developers to implement their organisation coding standard.
Thanks
I have an error which is occurring only very late in my code (after it's been running for ~20 minutes) and so trying to pinpoint exactly where it is is tricky because I have a lot of recursive function calls and if I go too far the important variable values may have been changed. Is there a way I can set a kind of save point where all the variables have their values saved and which I can jump back to after I've done some exploring rather than having the run the whole thing again from the beginning?
I found this and just wanted to point out that Roger Lipscombe's comment is what I was also looking for:
Precisely: IntelliTrace https://learn.microsoft.com/en-us/visualstudio/debugger/intellitrace?view=vs-2022
and
Historical Debugging (which is part of IntelliTrace) https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2015/debugger/historical-debugging?view=vs-2015&redirectedfrom=MSDN
Only available on the enterprise version of Visual Studio
I have a workaround for this kind of issue: Using the Data Breakpoint, at least, it could output and save the value manually, and it also can help you check that what value was applied to your code line, I just get this idea from this case I met before:
Visual Studio. Debug. How to save to a file all the values a variable has had during the duration of a run?
If IntelliTrace tool is helpful for you like Roger Lipscombe's suggestion, one idea is that you could use IntelliTrace Standalone Collector tool without the VS in one machine:
https://msdn.microsoft.com/en-us/library/hh398365.aspx
I have a solution in VS2013 that has multiple projects, one of which is code from a library which I don't often contribute to but I frequently pull from a repo. I'm looking for a way to show "//TODO" comments in the Task List from only the project I'm currently working on.
As it stands, the task list is inundated with //TODOs that other people are working on. My workaround is to name all of my personal TODOs as //JOB, but even being able to view just one project's //JOBs at a time would be a big plus and would prevent me needing to invent new comment names for each project I have in the solution.
VS2103 doesn't contain this functionally and some people requested this feature in MSDN VS blog.
You can extend VS2013 with Resharper that has a nice ToDo explorer.
Have a look here:
http://www.jetbrains.com/resharper/webhelp80/Reference__Windows__To-do_Explorer.html
You can group your TODOs by namespaces or projects for example...
Let me know if that supports you question.
In visual studio, one can create "tasks" by inserting comments like this:
//TODO: Make me a sandwich before looping.
These tasks can then be viewed under the View > Task List menu. But these tasks are entirely independent from Team Foundation Server.
It would be extremely useful to be able to automatically create a new Team Foundation work item when a TODO task is added, so that the work item can be assigned, commented, attached to, linked, and associated with check-ins, etc.
Anyone know if this is possible?
My suggestion - even if it was somehow possible:
Don't do that :)
//TODO: is very lightweight, you can add/remove/modify those lines as you like with no impact besides being source controlled.
TFS work items are much more heavyweight and process oriented (only so-and-so many state changes are allowed according to a process template).
Synchronization and keeping track would be a nightmare. Therefore I think nobody I know of does it.
We use:
//TODO: for developer comments/reminders. - Internal/developer only
WorkItems for Bug/Feature/Task tracking (Inprogress/Complete/etc.) - Team/developer/tester only.
Help Desk Request for End User visibality. - All/End Users
I don't think they should be mixed as they server different purposes.
I completely agree that turning TODO items into work items is the wrong way to go.
But considering this as a tool capability exercise I think it can be achieved.
You can define a dummy build with a custom build activity in it.
Here is a series of blog posts by Ewald Hoffman teaching how to customize Team Build.
http://www.ewaldhofman.nl/post/2010/05/13/Customize-Team-Build-2010-e28093-Part-5-Increase-AssemblyVersion.aspx
Part 5 discusses how to automatically increase assembly version with each build. He does this by including a custom activity in the build which scans through code files to catch a text pattern (in this case the assembly version xml tag) and update it.
The same approach could be used to catch TODO items (for the sake of the exercise) and work items could be created through TFS API.
Again, I do not recommend doing this but this technique could be used to solve other similar problems.
I'm working on a website at the moment that has three separate "area's" to it. Firstly, there's the main website, then there is a User control panel, and finally an Admin Control Panel.
At the moment, I am working with three separate solutions which is less than ideal, as I can imagine updating this in the future will become rather messy.
What I would like to do ideally, is create a solution, and then include the three separate projects within that solution. I don't have a problem doing that, what I can't seem to figure out however is the publishing side of things.
I've searched around and been unable to find a solid answer to my question, which is:
If I am using multiple projects in one solution, can each one be published to a separate FTP Server Directory? -- I would also welcome any ideas on how this could be done better.
My apologies if this question has been asked before, but during my searching I have been unable to find anything that relates to this situation.
Thanks in advance,
Dave
This is definitely possible, since publishing occurs at a project level rather than at a solution level. What I like to do is go to Tools->Customize->Keyboard... and set a custom key binding for "Build.PublishSelection". Whichever project you have highlighted in your Solution Explorer will be published when you push the key binding. You can save multiple publish configurations in the publish dialog as well.