[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to go to matching brace ?

Posted on 2014-04-16
5
Medium Priority
?
2,439 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
 
LVL 1

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 1000 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
 
LVL 1

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 …
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 viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

830 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