• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Can put a highlighter to mark which parentheses you forgot?

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, good morning, that is the question, or this isnt possible?  thank you!
 
Marshal
Posts: 79971
396
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most editors, and that includes IDEs, have bracket matching as an option. That usually includes (...) and [...] and {...}, and, if you are lucky, maybe <...> too. Hover the mouse on a bracket and its partner will be highlighted. You can't mark the brackets you forgot because they aren't there, obviously. You should get a hint where you have forgotten a bracket of any sort from the compiler error. But it is only a hint and it may give the wrong location.
 
Master Rancher
Posts: 5060
81
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't see a way to do this, it may help to know what editor or IDE you are using.
 
Bruno Valdeolmillos
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Most editors, and that includes IDEs, have bracket matching as an option. That usually includes (...) and [...] and {...}, and, if you are lucky, maybe <...> too. Hover the mouse on a bracket and its partner will be highlighted. You can't mark the brackets you forgot because they aren't there, obviously. You should get a hint where you have forgotten a bracket of any sort from the compiler error. But it is only a hint and it may give the wrong location.


The problem is that I already have autocomplete selected and they don't work for me.
autocompletar-eclipse.png
[Thumbnail for autocompletar-eclipse.png]
 
Sheriff
Posts: 28329
97
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But that's typing assistance, like if you type "new Zorb(" it can automatically make that into "new Zorb()" without you having to type the closing parenthesis.

I find that a useful feature when I'm typing new code but it's a pain when I want to insert text which includes a left parenthesis -- usually I don't notice that has happened and then I have to fumble around and fix the misaligned parentheses.

Bracket matching, on the other hand, will highlight the matching right parenthesis when you click on a left parenthesis. Can be useful if you botched up the matching (see above).

Does this help? I'm not really clear on what you are looking for.
 
Campbell Ritchie
Marshal
Posts: 79971
396
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think BV is looking for bracket matching; he might find using Eclipse easier if he had the interface in his own language rather than English. I think it is in the “Text Editors” page which can be found by clicking slightly higher on the window shown on the screenshot.
 
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic