Raised This Month: $32 Target: $400
 8% 

View Poll Results: Tabs or spaces
Tabs for indent and alignment 45 67.16%
Tabs for indent, spaces for alignment 19 28.36%
Spaces for indent and alignment 7 10.45%
Multiple Choice Poll. Voters: 67. You may not vote on this poll

Do you use SPACES or TAB ?


Post New Thread Reply   
 
Thread Tools Display Modes
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 06-14-2017 , 04:29   Re: Do you use SPACES or TAB ?
Reply With Quote #11

Shanapu... You almost gave me cancer. Also Silicone Vallay discussion about it was insanly great.
__________________
Want to check my plugins ?
Arkarr is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 06-14-2017 , 07:16   Re: Do you use SPACES or TAB ?
Reply With Quote #12

Quote:
Originally Posted by KliPPy View Post
I love Visual Studio Code's way of doing it. It detects how many spaces for indentation are already being used in the opened file, and converts tabs to that many spaces. Spaces are better overall, but I prefer pressing the TAB key because of fewer keystrokes. So I'm kind of in between.
Shouldn't your editor take care of it? I mean you press tab but it inserts the configured amount of spaces?
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-14-2017 , 10:43   Re: Do you use SPACES or TAB ?
Reply With Quote #13

Quote:
Originally Posted by Sillium View Post
Shouldn't your editor take care of it? I mean you press tab but it inserts the configured amount of spaces?
I press TAB and it follows whatever is being used already in the opened file. That allows me to always use tabs but be consistent throughout the project. Also VSCode on backspace doesn't delete just 1 space, but how many are used for indentation (in case you are realigning stuff). It's lovely.

Last edited by klippy; 06-14-2017 at 10:43.
klippy is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 06-16-2017 , 11:11   Re: Do you use SPACES or TAB ?
Reply With Quote #14

hmm...
https://stackoverflow.blog/2017/06/1...oney-use-tabs/
__________________
coding & free software
shanapu is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-16-2017 , 11:17   Re: Do you use SPACES or TAB ?
Reply With Quote #15

I'm actually starting to lean towards spaces, especially since you can make the TAB key input X amount of spaces with the editor your using. Using Shift+TAB would remove the 4 spaces or indent character, after a while you forget which one you're even using. Plus it's easier to just remove all \t and replace them with 4 spaces then it is replacing 4 spaces with a \t character.
Mitchell is offline
Kinsi
Senior Member
Join Date: Apr 2013
Old 06-16-2017 , 14:04   Re: Do you use SPACES or TAB ?
Reply With Quote #16

Sublimetext masterrace

Kinsi is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 06-17-2017 , 01:27   Re: Do you use SPACES or TAB ?
Reply With Quote #17

I find using multiple spaces in place of a tab sickening.
thecount is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 06-17-2017 , 02:44   Re: Do you use SPACES or TAB ?
Reply With Quote #18

I tab instead of space unless the project I'm working on was originally written to use spaces...
headline is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 06-17-2017 , 11:26   Re: Do you use SPACES or TAB ?
Reply With Quote #19

Using spaces and just missing one space can cause an indentation error within the compiler depending on the editor you use I believe, it still compiles however for cleaner code and removal of these errors i prefer using tabs myself.
MasterMind420 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 06-17-2017 , 15:11   Re: Do you use SPACES or TAB ?
Reply With Quote #20

Quote:
Originally Posted by Arkarr View Post
Just a simple pool to know how much the infection has spread..
*poll

also, tab master race. for html, when i start running tabs off the edge of the screen, that's when i switch to a 1 space indent, i.e.

Code:
<example>
 <example>
  <example>
   <example>
    <ul>
     <li></li>
    </ul>
   </example>
  </example>
 </example>
</example>
starting to think i should switch to spaces 100%...

Last edited by 404UserNotFound; 06-17-2017 at 15:17.
404UserNotFound is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode