I've been having a problem since I started using Eclipse with nodeclipse plugin. When I call a javascript method that takes a callback, the editor jumps the the cursor to the position after the closing parenthesis of the object method, e.g.
obj.foo(a, function(){
console.log('message');
});
as I type the console.log call, the cursor is inside the quotes, after message
. I press tab once, and the cursor jumps outside the closing quote of 'message'
. I press it again, and it jumps outside the closing parenthesis console.log('message')
. I type semi-colon and press enter, and instead of the editor creating a new line under the console.log()
call, it jumps to the end of the obj.foo()
call.
I looked in the formatting options but I couldn't find a setting that addresses this functionality, and I tried searching SO and google,but can't find a search term that gives relevant results.
Please help? It's driving me nuts and killing my productivity.