Solved

How to go to matching brace ?

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
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 …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

790 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