• 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
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Can put a highlighter to mark which parentheses you forgot?

 
Ranch Hand
Posts: 114
  • 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: 80874
506
  • 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.
 
Rancher
Posts: 5184
84
  • 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: 114
  • 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]
 
Marshal
Posts: 28425
102
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: 80874
506
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic