Game Development Community

Cursor position

by Howard Dortch · in Torsion · 05/11/2007 (6:03 am) · 11 replies

This may be a bit picky but after coding all day it gets to be an irritation.

in MSVC when you code you put in a funciton hit return add in open brace, hit return add in close brace the up arrow the cursor goes to the right of the starting brace. Torsion doesn't do this any setting I could use to make it work?


MSVC * = cursor position
void foo()
{*
}

torsion * = cursor position
funciton foo()
* {
}

#1
05/13/2007 (6:42 pm)
Nice catch.

It's curious why the editor control behaves that way... in fact it makes me wonder that if i make the simple generic fix if i'm breaking some other useful cursor behavior that i'm not seeing just yet.

I'll investigate it a bit and see how i can fix that particular case for you for the next release.
#2
05/13/2007 (7:04 pm)
Ok... if was a weird bug i introduced in doing automatic brace alignment. Fixed for the next release.
#3
05/13/2007 (7:24 pm)
Thanks Tom, do we get a ping on when next release gona be or we just keep checking here?
#4
05/13/2007 (8:13 pm)
The next beta will be posted here in this forum. I'll drop you a message in this thread to let you know.

If this next release looks solid then i'll have GG put it up on the product page and i'll change the version check to notify all users.
#5
05/13/2007 (9:36 pm)
I don't know if this is related or not, but I have been noticing an intellisense accelerator issue

if I have a function Hello.World(), but intellisense isn't picking it up (due to inheritance), if I do Hello.World( it will usually bring up something totally different for the auto-complete (like a global list of auto-completes or something)

the other thing I have noticed is if I have 2 functions

Hello.World() and Hello.WorldTwo(), I can usually get it to auto-complete the .WorldTwo() when I was typing World().

Not at work so I can't get some specific examples, but it would be nice to be able to turn off the new accelerators and just keep using Tab to auto-complete when I want to instead of while I am typing out function calls
#6
05/13/2007 (9:47 pm)
Hum... i'll look into that.

The completion on ( was prompted by another user that was very passionate about Torsion not being very useful in that area. I've already had a few people bitch about the change... so i may need to add an option to control some of those features.
#7
05/18/2007 (4:57 pm)
I agree with this completely, it has become a big issue for me. Now I add a space between the function name and the ( like this.

runToTarget (%pos);

To prevent the auto complete from firing a random unrelated function.
#8
05/18/2007 (5:07 pm)
Ok... changed my mind. I'm just gonna remove the feature. It looked like a good idea on first inspection, but it really is stupid for just the example you cite here.
#9
05/18/2007 (7:09 pm)
It just needs to work correctly, is all.

check out visual studio and take a look at the auto complete...
#10
05/18/2007 (8:21 pm)
VS has the same issue as the example here.

If you have abcd() in the completion database and your trying to enter abc(), which isn't in the completion database, you get abcd( every time. As far as i can see there is no way to finesse that to work other than not using ( for completion.

This is also the case with completion on =.

Personally ... i don't use ( or = for completion... i've always hit TAB. Any other ( or = users out there want to speak up?
#11
06/11/2007 (10:04 am)
The new beta is up now.

No one else spoke up on this issue... i made an "Enhanced Completion Keys" option for toggling completion on ( and =.