Forum

> > Off Topic > Disabling automatic tab in Sublime Text 3
Forums overviewOff Topic overviewLog in to reply

English Disabling automatic tab in Sublime Text 3

4 replies
To the start Previous 1 Next To the start

old Disabling automatic tab in Sublime Text 3

GeoB99
Moderator Off Offline

Quote
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?

old Re: Disabling automatic tab in Sublime Text 3

Yates
Reviewer Off Offline

Quote
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

old Re: Disabling automatic tab in Sublime Text 3

EngiN33R
Moderator Off Offline

Quote
@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.

old Re: Disabling automatic tab in Sublime Text 3

GeoB99
Moderator Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview