 |
|
 |
thanks for the quick reply bruce.
what i'm really looking to do is simply add a comment to the end brace of a block to match it's signiture. i thought i could modify/extend your example to do this. is there a better approach to do what i want?
kjward
|
|
|
|
 |
|
 |
Sorry kjward, but my knowledge of Windows add-ins is limited. I found the article by Jochen Baier and after downloading the source code I found it pretty simple to modify for my use with the VB editor. What you want to do sounds more complicated. My suggestion to you would be to download the source code, look at it and experiment with it to see if you can achieve the results you want. If not, perhaps try to contact Jochen Baier. Bottom line is that as long as you experiment on test C# source files, I don't think you can hurt anything by testing, because if your changes cause the C# files to be junked up, you can just deleted the DLL from the add-in directory and the editor will return to its normal behavior.
|
|
|
|
 |
|
 |
It doesn't mention it doesn't work for VS 2008 Express version...
|
|
|
|
 |
|
 |
Got a message indicating word wrap was disabled and needed it enabled for this addin to work. Enabled word wrap, restart vs2008: not working.
|
|
|
|
 |
|
 |
Visual Basic also lacks the feature to highlight round brackets. just when you close a round bracket the first time, the corresponding bracket gets highlighted, but unlike c# not when you place the cursor next to a bracket. ctrl + ] also isn't working for visual basic.net.
would be great if you could adapt this addin to work for visual basic as well.
|
|
|
|
 |
|
 |
It is a good work.
It is possible to change the "matching advice" using the colors of
"Brace Matching (Highlight)" [<-this works] and "(Rectangle)" of "Fonts and Colors"
of Options settings ?
Thanks.
modified on Thursday, March 26, 2009 10:05 PM
|
|
|
|
 |
|
 |
Thanks -- this is really useful
Bertram
|
|
|
|
 |
|
 |
And thanks this helps a lot...
|
|
|
|
 |
|
 |
Why does this solution not work in Visual C++ 2008 Express Ed ? :(
|
|
|
|
 |
|
 |
hi,
did you have the Microsoft .NET Framework 3.0 Redistributable Package installed ? the plugin is written in C#.
cu jochen
|
|
|
|
 |
|
 |
Visual Studio express editions don't officially support add-ins. Last I heard they accidentally left a hook in VS 2005... but they might have fixed it in 2008.
|
|
|
|
 |
|
 |
It is explaining everything. Thanks for the reply.
|
|
|
|
 |
|
 |
For example, when I type an open curly brace, move it down to the next line, insert another blank line, and a closing curly brace, leaving the cursor on the blank line between the open and closing brace.
|
|
|
|
 |
|
 |
hi,
cannot reproduce this behavior:
example:
func()
{
}
works as assumed.
can you give an example ? make sure "Ident" in the editor setttings is set to "Block".
|
|
|
|
 |
|
 |
Dear all,
regsvr32 wihtout effect if trying to install according to VS help. No Plugin, Addin etc. folder found within VS isntallation. How you're running it in VS 2005?
|
|
|
|
 |
|
 |
hi,
1.create a folder named "Addins" inside "My Documents\Visual Studio 2005\".
regsvr32 is not neccesarry.
2. change the version in the xml file to 8
|
|
|
|
 |
|
 |
I tested it successfully under VS2005. The idea is great!
However...the fact that the macro changes the file results in:
*) unwanted checked out (I am using SourceSafe control)
*) each action is placed on the undo/redo buffer.
*) when intellisense menu is activated, I can't escape anymore using arrow key..
|
|
|
|
 |
|
 |
hi,
i am working to get it working without an entry in the undo buffer. no success till now (UndoContext.SetAborted()....).
can you give an example for the arrow key problem ? thanks
|
|
|
|
 |
|
 |
Thank you for your respons.
About the last problem:
When you move the cursor using the arrowkeys through your cpp/h file, and the cursor passes a bracket (part of an overloaded function), it will stay there , because an intellisense menu will now always popup, showing you multiple choices.
These menu's will now always popup because the macro 'physically' edited the bracket.
|
|
|
|
 |
|
 |
When we open a project where source files are read only, then the addin changes the file(a star near to the file name appears) when the bracket is highlighted... can you fix this?
The addin works with VS 2005.
|
|
|
|
 |
|
 |
sorry no idea to avoid this.
|
|
|
|
 |
|
 |
great tool
is it possible to port this tool to VS2005
|
|
|
|
 |
|
 |
did you test it with 2005 ? could be working with 2005 too.
|
|
|
|
 |
|
 |
it works, i just had to change the version information
in the "MatchingBraces.AddIn" file from 9.0 to 8.0
(nice to have tool)
|
|
|
|
 |