Forum

> > Off Topic > Disabling automatic tab in Sublime Text 3
ForenübersichtOff Topic-ÜbersichtEinloggen, um zu antworten

Englisch Disabling automatic tab in Sublime Text 3

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Disabling automatic tab in Sublime Text 3

GeoB99
Moderator Off Offline

Zitieren
Currently, I am using using Sublime Text 3 editor tool to code mostly simple scripts in Lua and I notice whenever I press Enter to go in the new line it tabs by itself. I'd rather want to tab the code by myself instead to do it automatically.

I've searched some things about it in Google, though not best results for me. Any thoughts?

alt Re: Disabling automatic tab in Sublime Text 3

Yates
Reviewer Off Offline

Zitieren
Sublime Text 3 will automatically tab the code according to the language you are using. Sublime Text 3 is not an IDE, but tries to deliver as much as it can of what a normal IDE does. If you don't like the tabbing Sublime Text 3 does, well something is wrong with your code as it will never be tabbed wrong with the default languages Sublime Text 3 comes with.

Now, this for the Lua plugin is sadly not correct. Sublime Text 3 fails to deliver when it comes to Lua. So sadly we have to disable the autocomplete for everything just because the plugin author did something wrong. To do that, open your user settings and put the following into the table and save it:
1
"auto_complete": false
Note, this will disable auto complete for everything. So if you're working with a php file and you want Sublime Text 3 to auto complete, do tabs and stuff like that, you'll have to set auto_complete to true manually. There is no quick key code to do this, but it is possible to assign custom functions to keys in Sublime Text 3. But you can puzzle that out yourself

alt Re: Disabling automatic tab in Sublime Text 3

EngiN33R
Moderator Off Offline

Zitieren
@user Yates: That does not disable auto-indent, only auto-complete for functions and keywords.

To disable auto-indent, you have to go into Preferences -> Settings (User) and add this line:
1
"auto_indent": false
As soon as you save the file, the changes will take effect.

alt Re: Disabling automatic tab in Sublime Text 3

GeoB99
Moderator Off Offline

Zitieren
Dang it. When I was searching about it, there was a little documentation named "Indentation Settings" or such. Still couldn't understand what's exactly all about. Anyways thank you for the help now I got the point.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenOff Topic-ÜbersichtForenübersicht