Solved

How to go to matching brace ?

Posted on 2014-04-16
5
2,154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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 viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

707 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