|
For C and C# I use SPACEs (always), but for DCL I use a TAB followed by SPACEs -- so my labels are obvious.
On the other hand, this is another of those bad questions. I believe the survey has it backward; I would say that a TAB character is soft because you don't know how wide it will appear, whereas using SPACEs is hard because they will not vary in width. Respondants who don't read the question may answer wrong, the results will be meaningless.
|
|
|
|
|
Very good point. If you are a stickler for formatting the tab character can be interpreted differently in different editors. Spaces retain the same distance regardless thus retaining your formatting no matter what editor you use. Your source code should be readable. PERIOD.
|
|
|
|
|
Personally, I prefer spaces instead of tabs, but I generally set up my editors to do the conversion for me.
Having said that, there are a few languages that require tabs rather than spaces, so we make exceptions for them.
Professional Geek,
Amateur Stage-Levelling Gauge
|
|
|
|
|
However, I am stuck in many of my ways and one thing that annoys me to no end is having to delete every single space that is used for formatting. If VS could somehow magically determine, that hey this was a tab then I would have no opinion on the matter. Until then I will use real tabs in all of my code.
|
|
|
|
|
[Ctrl+Shift+Right], [Del].
|
|
|
|
|
I am also sloppy. I hate that combination with a passion. I am constantly deleting code because of it.
|
|
|
|
|
That's what [Ctrl]+[Z] is for...
|
|
|
|
|
I can't say I have given it a moments thought
|
|
|
|
|
VS makes them soft automatically, and I don't care enough to change it. I usually type hard tabs though, it's just faster.
|
|
|
|
|
VS seems to have solved this problem for the most part. I hate when "old schoolers" used 1/2/3 spaces instead of 4. In those cases, if they diverged from 4 spaces I forced them to use hard tabs so that we could all get along. Otherwise, VS automatically defaults to 4 spaces and I make that the coding standard for our group. It also helps when viewing code in different text editors... everything looks the same with soft tabs (IBM VisualAge defaulted to 8 spaces for every hard tab, eek!!)
|
|
|
|
|
1) You can tell VS what you want to use
2) [ctrl]+[k],[ctrl]+[d] will do the magic on the rest of old files
|
|
|
|
|
I know, but it doesn't matter to me.
|
|
|
|
|
This will only work using correct settings?
I had the following case which awful results:
- Existing Code. Indention with 4 spaces (sometimes ...)
- VS: Indention 2 spaces
D'oh!
|
|
|
|
|
uses damn space!
d{^__^}b - it's time to fly
|
|
|
|
|
|
Agree 0%
Collective code owner ship made easy when indenting with tabs. Some prefer indention of 2 chars, others 4, ...
|
|
|
|
|
I prefer tabs(char(4)) in my coding, however sometimes it varies on the language platform.
Thanks
Md. Marufuzzaman
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
Md. Marufuzzaman wrote: tabs(char(4))
They didn't refer to some SQL field, char 9 is \t....
|
|
|
|
|
hmm
Thanks
Md. Marufuzzaman
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|