vertexclique / tokamak

Fusion Reactor for Rust - Atom Rust IDE
https://vertexclique.github.io/tokamak/
MIT License
399 stars 13 forks source link

Tokamak enforces two space indents #69

Closed mmstick closed 7 years ago

mmstick commented 7 years ago

With this extension enabled, Rust source code will be forced to use two space indents -- completely ignoring the global value. Happened with the latest update.

mmstick commented 7 years ago

Still observing this today. Will this ever be fixed?

Lokidottir commented 7 years ago

Seconded, 4 space indent is more readable for some including myself and I can't find how to switch back to it.

mmstick commented 7 years ago

Made this PR which fixes the issue: https://github.com/vertexclique/tokamak/pull/80

sprowell commented 7 years ago

A fix, of sorts, is to modify the rust.cson file that is part of the Tokamak package. YMMV, but on the Mac I find this in: ~/.atom/packages/tokamak/settings

Just remove the line about 'tabLength': 2 and you should be good.

Edit: That's exactly the fix that @mmstick made in his PR above!