• Advertisement
Sign in to follow this  

IDE autocompletition question

This topic is 761 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi.

This may sound like a dumb question, but i have been searching for some opinions about this.

 

As you may know, now most IDEs have a quite advanced autocompletition feature and keyboard-centric navigation.

My doubt involves parenthesis, brackets and braces.

 

When i'm editing some code and open a bracket or parenthesis, in most IDEs the closing bracket/parenthesis is automatically added. After filling whatever goes inside the pair of brackets, the cursor ends up just next to the closing parenthesis.

Until now, i use the End key, which is quite far in the keyboard to get outside of the pair of symbols, and then use the arrow-keys or Return key to navigate to the next line or inside a pair of braces.

 

I don't know if i'm wrong, but isn't there a shortcut, or some way to do this automatically without having to use arrows, or End key? I mean, IDEs are really smart nowadays, so i feel like i'm missing a feature that perhaps has been there for a while which does excatly this..

 

The only editor i 've used which let me configure this was vim. But to be honest, i don't like vim :(.

 

Any enlightment?

Share this post


Link to post
Share on other sites
Advertisement

This might not be exactly what you're looking for, but it reminded me of something I've seen a lot of people not know -- figured I might as well share (assuming Windows, not sure if applicable for other operating systems):

 

In most text editors, Ctrl will change manipulation to be word-centric instead of character-centric.

Ctrl + Left/Right Arrow will skip to the previous/next word. Can also be used in combination with Shift to quickly select/deselect whole words at a time.

Ctrl + Delete will delete from the current position until the end of the word.

Ctrl + Backspace will delete from the current position until the beginning of the word.

Share this post


Link to post
Share on other sites

In many IDEs, if you simply type the closing parenthesis (which it has already inserted for you), then instead of inserting a second one, it just moves the cursor to the right of the already-magically-inserted one, and then you can press enter.

Share this post


Link to post
Share on other sites

In all the IDEs I've used with auto-complete, hitting Tab will also go to the end of whatever auto-complete section you are currently in.

Share this post


Link to post
Share on other sites

In NetBeans typing a closing parenthesis will just skip over the already present one of the same type. And typing a semicolon will place the semicolon at the end of the line if all between it and the end of line is the closing parentheses.

Share this post


Link to post
Share on other sites

Thank you for your answers.

Im using JetBrains IDEs, which is quite mmm standar about shortcuts. At least it is compatible with Netbenas(mostly).

 

As i see, it seems the easiest way is to actually close the parenthesis/brackets/braces manually jajaja. Two strokes instead of one.

 

Anyway, it seems like a little issue not taken seriously. Jeje.

 

Thanks again for your answers.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement