Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
2.22/5 (2 votes)
See more:
Hello! I am attempting to help my company migrate to Visual Studio 2013 for our code management.

We modify and write html files, and are in dire need of button creation (in the VS interface).

To explain in detail, what we're using now is HTML Kit and we have a series of custom plugins that insert code, modify existing code, and format things in the correct way for our company's software to use it.

We are leaning away from HTML Kit and towards VS 2013 because it has full integration with TFS.

All I need to know how to do, is create/edit a custom toolbar of buttons/dropdowns that has our needed functionality in it. I have played around with snippets, with the purposed outcome of possibly having the buttons simply implement the snippets. This is probably not the most elegant way to handle it, but it would work for our purposes.

Any help here would be greatly appreciated, the sooner we can move to VS, the sooner we can move away from Visual Source Safe.

For the most part, most of our buttons simply ad our custom html tags, this is where we would like to start. There are some more complicated functions that some of them provide, however those can be dealt with at a later time.
Posted
Updated 6-Apr-15 11:54am
v2

We'll if that is all you need, you could just add to the htmlToolbox.

If you looking at a html file, the toolbox window should show the HTMLToolbox.

If you now make some custom HTML, like;

HTML
<div class="form-group">
     <label></label>
     <input type="text" class="form-control" />
 </div>


You can select it and then drag it into the toolbox.
Rename it. et voila.

I'm not sure on how to share this toolbox with others. But I suppose it is saved somewhere on disk.
 
Share this answer
 
v2
Comments
Deepu S Nair 23-Apr-15 8:56am    
Two solutions for one question?
Nieminen 23-Apr-15 14:35pm    
I like that, and I believe that is a decent start, however not all of them are simple text insertions, some of them are more complicated and somewhat interactive.
Do you happen to know how you might implement something, that takes the highlighted text, and wraps each block (separated by a blank long) with <p> or <div> tags? essentially turning:

Stuff

and

things

into:

<p>
stuff
</p>

<p>
and
</p>

<p>
things
</p>
Sebastiaan Meijerink 24-Apr-15 16:01pm    
So, you need it to be interactive with the code editor?
I did try this, to use with a legacy language.
But this was in the 2005 version. And at that time it wasn't all that easy and i abandoned it.

But lately I'm seeing great plugins like that do these kind of things. Like the ones by Mads Kristensen.
You need to look at the VisualStudio SDK. Things like SideWaffle are made with this. And you can do amazing things.

But there isnt a single awnser that fits in a comment or solution.
What you want and need is possible. You can severly extend visual studio. But there is no simple 1 line awnser to this.

But if the reason for moving from a platform that works for you to Visual Studio is TFS than I would look at some other options.

TFS itself doesn't demand Visual Studio. There are even Eclipse plugins for it.

But it can also be used from a directory structure directly.
The TFS Team Explorer can run as a standalone app. It yust happens to be a panel in Visual Studio as well.

If you want you can store Office documents in TFS.

Look at Team Explorer Everywhere;
https://www.visualstudio.com/en-us/products/team-explorer-everywhere-vs.aspx[^]
 
Share this answer
 
Comments
Nieminen 22-Apr-15 15:39pm    
Yeah, we've found all that out. But we would very much like to make VS work. Do you have the knowledge on how to create a button (in the toolbar) that simply adds code to the open file at the cursor position?

If we could just get one working that way, we can figure out the rest ourselves. The problem is getting the first one. My team and I have done extensive searches on the web to find similar things, but nothing seems to be quite what we're looking for, and it's different enough for it not to be within our knowledge to adapt.

Thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900