Sublime Forum

Syntax settings in Project Settings

#1

Has anyone figured out a way to get Per-Syntax editor settings configured in Project Settings?

e.g., I have two mixed language projects. C and python.
Project 1: Requires 4 space indent for C and 2 space indent for python
Project 1: Requires 8 space indent for C and 4 space indent for python

I know I can set tab_size in the project settings, but I really need the ability to set it per language + per project.

0 Likes

#2

Short of a plugin of some sort, I don’t think you can do that. The per syntax settings are applied based on syntax without any regard for the project settings, and the project settings can’t set per syntax settings, only global project settings.

There may be an existing package on Package Control that can set this up for you though.

0 Likes

#3

Hello,

I believe this can be achieved through the use of editor config through the use of the plugin.

4 Likes

#4

This is perfect. Thanks!
Looks like there are a bunch of editors that have native support. Maybe this should be added to the core? :slight_smile:

0 Likes