amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 27 Mar 2015 03:49 PM |
I've found it's most proper to indent with 2 spaces in Lua, but I enjoy the easiness of tabs.
Like I can't accidentally half indent with a tab, you know? I am so used to seeing tab indentations. I do not see anyone use 2 spaces regularly except maybe Seranok. I think they are aesthetically pleasing, though.
Opinions?
-amanda |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 03:52 PM |
You aren't even a scripter if you don't indent code.
amirite? |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 03:53 PM |
Indent is love Indent is life
~The random person in every sub-forum~ |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 03:54 PM |
| you could rig up some weird code and make an entire new character so when you old shift and tab it makes a tab thats 2 characters long |
|
|
| Report Abuse |
|
|
MM233
|
  |
| Joined: 19 Jun 2008 |
| Total Posts: 925 |
|
|
| 27 Mar 2015 03:55 PM |
| You guys DO realize question isn't about whether or not you should indent, but how? |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 27 Mar 2015 03:56 PM |
sound promising
but i don't want to feed people weird characters that are going to show up as tiny boxes and question marks when they transfer to something else |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 27 Mar 2015 03:58 PM |
| whats the point of indenting? |
|
|
| Report Abuse |
|
|
MM233
|
  |
| Joined: 19 Jun 2008 |
| Total Posts: 925 |
|
|
| 27 Mar 2015 03:58 PM |
Oh hey, look what I found...
File > Settings > Studio > Script Editor > Tab Width = 4 |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Mar 2015 03:59 PM |
"whats the point of indenting?"
if you dont you are an incompetent inconsiderate evil garbage wannabe scripter piece of trash |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 03:59 PM |
settings().Studio["Tab Width"] = 2
Have fun :)
Note to amanda: Could you check my plugin feedback thread? I replied back to your feedback. |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 27 Mar 2015 04:00 PM |
| K7Q, easier to read, more organized, knowing where functions, if statements, loops, and any other possible block of code starts and ends without having to really look |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 27 Mar 2015 04:02 PM |
almost sad that that worked.
indenting isn't as impressive now because they are kind of tiny |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 27 Mar 2015 04:04 PM |
sample code:
local UIS = game:GetService('UserInputService')
UIS.InputBegan:connect(function(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.Quote then print('quote') end end)
UIS.InputEnded:connect(function(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.Quote then print('unquote') end end)
|
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 27 Mar 2015 04:04 PM |
| still shows up as full sized tabs in forum so its not worth it, changing it back |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 04:05 PM |
| I always use tabs, even when the language standard is different |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Mar 2015 04:06 PM |
"I always use tabs, even when the language standard is different"
The only one that I would think doesn't is HTML but i'm pretty sure it does. What language does not use tabs? |
|
|
| Report Abuse |
|
|
Argelius
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 4047 |
|
|
| 27 Mar 2015 04:07 PM |
| I probably wouldn't indent if the editor didn't do it automatically because laziness |
|
|
| Report Abuse |
|
|
MM233
|
  |
| Joined: 19 Jun 2008 |
| Total Posts: 925 |
|
|
| 27 Mar 2015 04:09 PM |
| No language "uses" tabs. Its a convention for making code more user friendly, and not using it really does make things harder on yourself, especially if you intend to make any large, well made projects. |
|
|
| Report Abuse |
|
|
Argelius
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 4047 |
|
| |
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 27 Mar 2015 04:14 PM |
| python uses 4 spaces, and whenever i was a python user, i had no issue with the convention because it was close enough to an indent for me because i am used to them being 4 spaces long |
|
|
| Report Abuse |
|
|