microsoft / vsminecraft

Visual Studio extension for developing MinecraftForge mods using Java.
Other
194 stars 25 forks source link

Mod Templates Contain Mixed Tabs and Spaces #10

Open BrainSlugs83 opened 9 years ago

BrainSlugs83 commented 9 years ago

Should be pretty easy to fix -- looks like the line "//some example code" contains tabs at the start, might be others. See screenshot for details.

Mixed Tabs and Spaces

BrainSlugs83 commented 9 years ago

Actually, looking further at it -- it looks like the Java text editor settings (by default) are set to use tabs and not spaces (C# and others still set to spaces) -- if that's the case -- perhaps instead of converting that line to spaces, all the other lines should just be converted to tabs.

sharwell commented 9 years ago

@BrainSlugs83 I never even thought about that, but you're right. Perhaps the default value for this setting should be changed to be more like the C# editor.

BrainSlugs83 commented 9 years ago

Either way is fine. I think most Java developers are accustomed to using tabs -- but if you do it that way just make sure to update the example files to use tabs also.-- and versa vice of course. -- just make sure the default settings match the example files so we dont end up with weird mixed spacing documents.