Solved

How to go to matching brace ?

Posted on 2014-04-16
5
1,857 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c++ syntax question 9 44
Unable to start eclipse ? 17 134
Add values of each row in an array 3 50
How to copy documents folder to network folder automatically as backup? 15 84
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

863 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

24 Experts available now in Live!

Get 1:1 Help Now