Skip to main content
Email Password   helpLost your password?

Introduction

The Visual Studio 2008 C++ text editor only highlights matching braces if written the first time. Almost all text editors have the feature of highlighting matching braces if you put the cursor near to an open or close brace (even the Visual Studio C# editor). This add-in will provide this feature for C++ too. (Tested with Visual Studio 2008; for 2005, you need to change the version information in the "MatchingBraces.AddIn" file from 9.0 to 8.0).

Using the Add-in

  1. Just copy the contents of the "readyplugin" folder to "C:\Users\Username\Documents\Visual Studio 2008\Addins". Restart Visual Studio.
  2. Put the cursor on the right side of a brace (one of: '{[()]}'). If the brace has a matching one, both braces will be highlighted with a bold font.

Source Code Overview

Limitations

The add-in needs to rewrite the brace. This modifies the text as long as the cursor is near a brace. If you move the cursor away, the text is not modified anymore.

Conclusion

This is an essential feature for every text editor.

History

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralAwesome! Pin
visualstudiowang
13:00 23 Oct '09  
GeneralAuto-Generated End-Brace Comment Pin
kjward
3:11 30 Sep '09  
GeneralRe: Auto-Generated End-Brace Comment Pin
Jochen Baier
5:36 2 Oct '09  
GeneralModified for Visual Basic: Works in VS2008 but not VS2005 Pin
Bruce Farmer
10:27 21 Sep '09  
GeneralRe: Modified for Visual Basic: Works in VS2008 but not VS2005 Pin
kjward
5:18 29 Sep '09  
GeneralRe: Modified for Visual Basic: Works in VS2008 but not VS2005 Pin
Bruce Farmer
5:38 29 Sep '09  
GeneralRe: Modified for Visual Basic: Works in VS2008 but not VS2005 Pin
kjward
5:58 29 Sep '09  
GeneralRe: Modified for Visual Basic: Works in VS2008 but not VS2005 Pin
Bruce Farmer
8:55 29 Sep '09  
GeneralMy vote of 1 Pin
salocin_
4:50 2 Jul '09  
GeneralVS2008 SP1 Pin
VEMS
3:15 30 Apr '09  
Generalchances to get this working with visual basic in VS 2k8 as well? Pin
tomtom1980
22:20 2 Apr '09  
GeneralColor Highliight [modified] Pin
ameliaamelia
16:57 26 Mar '09  
GeneralVery useful Pin
sprice86
3:50 20 Feb '09  
QuestionCan this work for .Net 2003? It seems not to! Pin
Jelena Curcic
22:46 12 Feb '09  
Questionnot working in Visual C++ Express Pin
torys
15:13 26 Oct '08  
AnswerRe: not working in Visual C++ Express Pin
Jochen Baier
1:51 28 Oct '08  
AnswerRe: not working in Visual C++ Express Pin
Qwertie
10:53 11 Nov '08  
GeneralRe: not working in Visual C++ Express Pin
torys
7:00 15 Nov '08  
GeneralNice idea, but how about something more useful? Pin
tonyt
14:34 27 Sep '08  
GeneralRe: Nice idea, but how about something more useful? Pin
Jochen Baier
14:52 27 Sep '08  
GeneralHow to install into VS2005 Pin
lefis
23:26 15 Sep '08  
GeneralRe: How to install into VS2005 Pin
pulp_4346494
3:43 16 Sep '08  
GeneralGood idea, except for... Pin
Robo
3:48 1 Sep '08  
GeneralRe: Good idea, except for... Pin
pulp_4346494
15:56 1 Sep '08  
GeneralRe: Good idea, except for... Pin
Robo
22:41 2 Sep '08  


Last Updated 5 Nov 2008 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009