treecoder
treecoder

Reputation: 45181

How to configure Sublime text to support both spaces and tabs for indentation

I am using Sublime Text for JavaScript development where I use tabs for indentation.

But, for Python development, I need to use spaces (per PEP-8). So what config directives should I change to support both.

(I am fairly new to Sublime Text)

Upvotes: 0

Views: 106

Answers (1)

skuroda
skuroda

Reputation: 19754

You can create syntax specific configurations. Preferences -> Settings - More ->Syntax Specific - User. Add the following configuration "translate_tabs_to_spaces": false, setting the boolean as appropriate.

Upvotes: 2

Related Questions