Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Shane Conroy
Shane Conroy
11,032 Points

Local Development Environments - Code Completion - Place cursor within parentheses...

This may seem trivial, but it can save time when typing. When Craig is demoing code complete, he does something when selecting the option he wants that places his cursor within the parentheses that are generated by the code complete option.

I haven't watched the full video so I apologize if he answers this later, but it's just really bothering me.

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Shane,

It's actually not something that Craig is doing (Though sometimes he's real quick with the arrow keys). This is a feature of the IDE's auto-complete function. So, it will matter on which IDE your using.

As for the cursor being placed within the parenthesis, I believe that when you hit enter on the auto-complete, if param(s) are 'mandatory' the cursor will go there, but if the param(s) are optional or not needed, the cursor gets placed outside.

Could you link a particular video with an example?

Keep Coding! :) :dizzy: