Last Updated: August 03, 2017
·
5.689K
· zigotica

How to fix jshint alert "mixed spaces and tabs" in SublimeText2

1) Open your SublimeText2 User preferences

2) Add

translate_tabs_to_spaces: true,
use_tab_stops: true

3) Save preferences

Now your jshint process will not alert any error since spaces and tabs are intelligently converted.

1 Response
Add your response

Thanks! I have SublimeText3 and added the code into 'Preferences>>Settings' but the issue with JSHint remained.

{
"translatetabstospaces": true,
"use
tab_stops": true
}

Any ideas?

over 1 year ago ·

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside