![]() |
auto indent code in RC
on apply can we PLEASE auto indent the code.
|
That's a horrible idea.
Somethings would get indented all wrong such as large arrays on multiple lines. I always do all my indenting by hand. |
Quote:
Coders have their own style and automatic formatting would ruin it. |
Definitely do it by hand. That's how basically everyone does it, even most IDEs for professional programming languages don't do it.
Just /style weapon WEAPONLOL in RC if you want ... |
Ya, I was about to say isn't there already a command to style a weapon?
I used to rely heavily on Graal's default styler in the editor, but I got used to doing it by hand in RC. It is a pain when you add in something and you have to go through a bunch of lines indenting them properly though. |
So hard to press tab :'(
There is also the /style command for lazy people. |
Quote:
and I know about /style, the question is why is this necessary when the functionality exists and could be done automatically if players checked an option? |
Quote:
And I guess you need to look at more IDEs? Netbeans, Eclipse, fairly certain Visual Studio doesn't. Graal does what any IDE does, which is keep you on the same indent. /style IS for lazy people, and it doesn't even work that well. |
Quote:
Microsoft visual and eclipse also auto indent so you've lost me |
Stop whining because the editor doesn't do everything for you.
Adding auto-bracketing is waste of Stefan's time. |
Quote:
|
Quote:
Silly me. :rolleyes: |
if you want to argue semantics, we'll get to the base point that netbeans is a compiler for the mildly retarded. You brought netbeans up, putting you in that category.
Given it's a compiler that will make GUIs for you, it'd be a safe bet (actually, it's true) that it auto-indents. That more satisfactory for you? |
Quote:
I believe that monkeys are bad. If you so much as mention the word 'monkey', I will consider you bad. Quote:
Quote:
|
let's put all this aside
This forum is a place for suggestions. I made my suggestions I'm therefore confused as to why some part of the playerbase has convinced themselves that they are responsible for implementing such suggestions. |
You make it sound like suggestions that many dislike will be implemented.
This forum is also for discussing suggestions, like what we're doing right now. |
Future Improvements (4 Viewing)
Let the ideas flow freely I don't see anything about discussion, and being so adamant about not including a checkbox seems more like "whining" to me then what I suggested. |
Because people new to scripting should not rely on such a feature as having their entire code automatically formated on apply. You're even too lazy to use the /style command. Also you should realize Stefan is the only one who can update the external RC code and that would be a waste of time.
If you want it to bad ask Skyld to add it to the scripted RC, then people will never learn how to type readable code. |
Quote:
|
Quote:
Quote:
And oh ****, I already knew Stefan is the only one who could update the code because I would have A.) done it myself already or B.) asked for assistance from the general population in doing so rather than coming to the game's official forum and asking the staff to do so (I mean, it's kind of implied since it's Future improvements and the last time I checked, players != official staff). Quote:
|
Quote:
Quote:
Quote:
After having made such a bad comparison I think you're just whining because you're too lazy to indent code yourself. |
Quote:
Quote:
Quote:
Quote:
|
Quote:
Quote:
Auto-adding brackets and stuff is a nice little thing that I don't mind as long as its optional so I can turn it off. But auto-formatting your whole code for you is something that is in no way needed and this is what I think you want. If I'm misunderstanding you then speak up. I don't want people to be able to type the crappy (but functional) code into RC and have it work fine after hitting apply, that is promoting a BAD HABIT. |
Quote:
I don't get how you're suggesting auto indentation will make bad code any better, all it is is adding a few spaces. You've only lead me to confusion now. It's not like allowing auto indentation will make good code bad either. So again, you've confused me entirely. |
This is a good idea, since I prefer to use auto-indent when I work with jEdit, primarily because I don't like to go and indent my own code. jEdit indents after every {, (, and [.
|
I'm saying auto-formatting, like having your entire code compressed into one line and then being able to use auto-format to expand it into something that looks more readable. (i.e. /style)
If you just mean indenting after brackets and the like then thats not bad. |
Quote:
|
Quote:
|
Quote:
|
Quote:
Still, you should be doing it anyway. |
Not an apply, it should do it as you type x.x
|
It could be interesting to add a button like in the offline editor for "styling" the script (apply, /style, reload), may be Skyld could add that :) It could also be interesting to give options to /style instead of using the server-side style options.
|
If it doesn't auto-indent as you type then screw it. I couldn't read what i just wrote if I didn't indent it x_x
|
Quote:
|
| All times are GMT +2. The time now is 02:13 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.