Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Editor Feature Question

Author
Message
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 9th Jun 2007 02:39 Edited at: 9th Jun 2007 02:44
Do any of the current editors already have (or are looking to implment) some autotype features.

ie. I type "function" the editor produces...
FUNCTION


I type "If" the editor produces...
IF


But if I continue the line "IF x=1 THEN"... the editor removes the ENDIF

Last example...

I type "(" and the Editor automatically creates the closing ")" pair.
(


~~~~~~~~~

No big deal, but just some things that I think would take trivial things off the programmer.

As always... Thanks for your input!
~zenassem

Moondog
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: outside the box
Posted: 9th Jun 2007 02:51 Edited at: 9th Jun 2007 02:53
just a thought, but how would the editor know when to place the ending command line? after the first line of the if statement, after pressing enter twice, after hitting space 5 times, after jumping in circles around you computer one a pickle while singing Hells Bells?

id' think it would get too annoying really, because not all functions and or if statements are the same, especially if your going for tidy code or if your refining code.

then you have instances where you have several if statements embedded in many other if statements, sometimes it can get complicated, so how would the editor know then when to place the ending?
example:



if an editor had such a feature, i would have it turned off, but thats me

i forget who, but one MOD created a very nice utility that you run it and it automatically cleans up your entire code for yah.

anyway, just my opinion

MOONDOG

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 9th Jun 2007 03:03
Quote: "i forget who, but one MOD created a very nice utility that you run it and it automatically cleans up your entire code for yah."


Maybe you're thinking about the little program TDK made that would indent the code for you?
http://forum.thegamecreators.com/?m=forum_view&t=104344&b=5

Moondog
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: outside the box
Posted: 9th Jun 2007 03:06
maybe that was it, i thought it did more

MOONDOG

Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 9th Jun 2007 03:23
Blue IDE auto-completes some things, like If...Endif and Do...Loop. It does it when you press enter. More than not it's annoying, but I've not disabled the feature in the editor.


Come see the WIP!
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 9th Jun 2007 15:05
Synergy Editor has autocomplete for

if..endif
function..endfunction

and skips

if...then

Beta testers are reporting it works well, so other blocks will be added later this weekend.

Link in sig to TGC forum download \/

Login to post a reply

Server time is: 2024-11-18 17:55:24
Your offset time is: 2024-11-18 17:55:24