visual-studio-code

VS Code setting for specific filename


I want to apply a setting for a specific file. The only answers I've seen for this topic have been language-specific settings. How can I achieve this?


Solution

  • At this time, you cannot achieve this natively. According to their documentation they state:

    VS Code provides two different scopes for settings:

    • User Settings - Settings that apply globally to any instance of VS Code you open.
    • Workspace Settings - Settings stored inside your workspace and only apply when the workspace is opened.

    You would have to file a feature request on their github for support