Solved

How to go to matching brace ?

Posted on 2014-04-16
5
1,758 Views
Last Modified: 2016-11-10
Hello, I'm using Slick Edit version 6.01.7601  Service Pack 1.

I'm at opening brace.  How do I go to to closing brace?   Or how do I highlight opening and closing brace so I can see the block ?
0
Comment
Question by:naseeam
  • 2
  • 2
5 Comments
 
LVL 32

Expert Comment

by:phoffric
ID: 40005767
On a number of editors, I use ctrl-[ or ctrl-] to match braces, brackets, and parenthesis, both forwards and backwards.
Holding the shift key down as in ctrl/shift followed by [ or ] then highlights the area between the braces or parenthesis. Very useful. Although I have not used SlickEdit (I use Qt Creator on Ubuntu and VS 2010 Express on Windows), from a search, I believe SlickEdit falls into this same category.

Since you are getting into SlickEdit, I found a table of key shortcuts to give you too many goodies.
https://www.slickedit.com/images/stories/products/slickedit/emulation_charts/visualstudio_emulation.pdf
0
 

Author Comment

by:naseeam
ID: 40005800
Thank you so much for sending table of shortcut keys.  It specifies following keys for finding matching parenthesis:

Ctrl + Shift + ]

but this key sequence didn't work for me.  From main menu - Search - Go to Matching Parenthesis works.  Or Ctrl + ] works.

FYI, when I installed slickedit, I selected CUA emulation.
0
 
LVL 32

Accepted Solution

by:
phoffric earned 250 total points
ID: 40005839
I was surprised to see in the table Ctrl + Shift + ] as the matching brace shortcut. But since I posted both keys with and without the Shift, I figured one of them would work. :)

Now that I think about it, I recall some editors I used decades ago used Ctrl + } to find the matching brace (and of course, the } is just the Shift+].

Here is the CUA emulation I found for SlickEdit. Hope some of these work for you.
https://www.slickedit.com/images/stories/products/slickedit/emulation_charts/cua_emulation.pdf

Possibly there is no Ctrl + [ for your SlickEdit. You just use Ctrl + ] to go back and forth, whereas in some editors, the ] is strictly for going backwards and [ for forwards; so in this case, you have to be careful not to do Ctrl + ] too many times or else you may land well beyond the original matching brace.
0
 

Author Closing Comment

by:naseeam
ID: 40006524
Great answers!  Bonus editor information.
0
 

Expert Comment

by:Symileon Gitterton
ID: 41882764
On my mac the key binding Ctrl-] does not work. In fact I can't even enter it into the Options text field for searching key combos. I believe the operating system must be eating that key combo before it gets to SlickEdit. So I changed the key binding in Tools->Options->Keyboard and Mouse->Key Bindings->find-matching-paren to Ctrl+Alt+] and that works ok.

Mac OS 10.11.6
SlickEdit Pro 2015 (v20.0.0.12)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now