Skip to content

How to override certain setting for "js" only #146

Description

@rchl

I can't figure out how to apply "preferred_tabs_sizes": [0] to the JS files only. Tried this:

// Settings in here override those in "${packages}/DoxyDoxygen/Doxy.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
    "profiles": [
        {
            "languages":  [ "js" ],
            "parsers":    [ "LanguageJavaScript" ],
            "doc_styles": [ "JsDoc" ],
            "continuation_on_singleline_comment": true,
            "preferred_tabs_sizes": [0],
        }
    ]
}

but it's not changing anything.

This works but I don't want to apply that setting globally:

// Settings in here override those in "${packages}/DoxyDoxygen/Doxy.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
    "continuation_on_singleline_comment": true,
    "preferred_tabs_sizes": [0],
}

Some of the settings

Edited text

- sublime.syntax:      Packages/JavaScript/JavaScript.sublime-syntax
- doxy.language:       js
Cursor 1

source.js meta.export.js meta.function.js meta.block.js

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions