# How to get a specific-to-view's settings? — non-inherited

**URL:** <https://forum.sublimetext.com/t/how-to-get-a-specific-to-views-settings-non-inherited/78792>\
**Category:** Plugin Development\
**Created:** [June 25, 2026, 11:54am UTC](https://forum.sublimetext.com/t/how-to-get-a-specific-to-views-settings-non-inherited/78792 "2026-06-25T11:54:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arch-kain](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@Arch-kain](https://forum.sublimetext.com/u/Arch-kain)\
**Post date:** [June 25, 2026, 11:54am UTC](https://forum.sublimetext.com/t/how-to-get-a-specific-to-views-settings-non-inherited/78792/1 "2026-06-25T11:54:50Z")

</div>

**I try to get an overview of a view’s settings.**  
But I only wants view’s specific settings. Not all inherit values.

Basic setup:

> - We have no `rulers` settings in `Preferences.sublime-settings`
> - We have rulers at `[100]` in `Packages/User/Python.sublime-settings`
> - The current view’s syntax is `Python`
> 
> At this point, if we check `view.settings().get("rulers")` we get the value defined in `Packages/User/Python.sublime-settings` as expected.
> 
> - For the view, we set `rulers` at `[120]`. _We specifically use menu/command to do it_  
> The view has its own/specific settings.
> - Same operation, but with `[100]`, same as “default”.
> - Change the `Packages/User/Python.sublime-settings` for `"rulers": [80]`
> 
> At this point, we see/know that the view has still its rulers at `[100]`, not as “default”.  
> → ofc : we do not used `view.settings().erase("rulers")`
> 
> _Note:_ Users that expect a “reset” for this operation, could tell _“What the ~~F..~~ bug is this?”_ (^^)

Using `view.settings().to_dict()` also contains the “parent settings”  
_eg._ from `Packages/User/Python.sublime-settings`

We can’t get the “source settings” of settings values. (ie. where is it from? Application, Syntax, Project settings?) — Is it a settings specific only to this view or not? 🤷

I could “compare **all parents** settings to view settings, and remove all keys that as the same values” and use this to get a “final view specific settings dict” but:

1. I need to find all parents settings _: which seems hard for some cases_. Even if I could…
2. as we saw above : a view’s **specific settings** could have the same value as a parent settings. Which will be “removed” to the “final view specific settings dict” (not intended).

* * *

So. Is there a workaround?

Or, should I request this as api feature? _Will it be useful? or I just need to “deal with it”? x)_

---

<div class="post-metadata">

**Author:** ![bschaaf](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/bschaaf/32/70376_2.png) [@bschaaf](https://forum.sublimetext.com/u/bschaaf)\
**Post date:** [June 25, 2026, 2:07pm UTC](https://forum.sublimetext.com/t/how-to-get-a-specific-to-views-settings-non-inherited/78792/2 "2026-06-25T14:07:18Z")

</div>

The setting hierarchy for a view is fairly complex, and not all of the settings objects are exposed in the API; being able to tell if the view has a setting won’t necessarily help. Perhaps an API to get the origin of a setting would work better? Is this just for debugging purposes or do you have a different use case?

---

<div class="post-metadata">

**Author:** ![deathaxe](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/deathaxe/32/52468_2.png) [@deathaxe](https://forum.sublimetext.com/u/deathaxe)\
**Post date:** [June 25, 2026, 3:56pm UTC](https://forum.sublimetext.com/t/how-to-get-a-specific-to-views-settings-non-inherited/78792/3 "2026-06-25T15:56:32Z")

</div>

A use case is provided in _Default/ui.py_, which does some hacks to determine whether color scheme is set view-specific or not.

MarkdownEditing’s color scheme selector also needs such kind of information to determine whether to set or delete a color\_scheme value from view or syntax specific settings. It wants to be able to remove a view specific color\_scheme for the global one to become affective.

An api to tell the source of a setting would be helpful in such scenarious.

Currently we can just query view’s settting an than manually attempt to get syntax-specific, project-specific and global settings to get a hint about settings’ source.

---

<div class="post-metadata">

**Author:** ![Arch-kain](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@Arch-kain](https://forum.sublimetext.com/u/Arch-kain)\
**Post date:** [June 26, 2026, 6:08am UTC](https://forum.sublimetext.com/t/how-to-get-a-specific-to-views-settings-non-inherited/78792/4 "2026-06-26T06:08:11Z")

</div>

> [@deathaxe](#):
>
> A use case is provided in _Default/ui.py_ , which does some hacks to determine whether color scheme is set view-specific or not.  
> …

I didn’t look deeply inside it, but it seems it is not enough. → _“What about all plugins that added settings in their own sublime-settings ?”_

> [@bschaaf](#):
>
> The setting hierarchy for a view is fairly complex, and not all of the settings objects are exposed in the API

That what I though ! ^^’

> [@bschaaf](#):
>
> Is this just for debugging purposes or do you have a different use case?

Both _(ofc ^^)_ ! I don’t have the specific cases in mind right now, but I know I have at least 2 plugins I would like to have an api to handle source settings / view-specific settings.

* * *

Is it better to request an API feature here on the forum or on github?

---

<div class="post-metadata">

**Author:** ![deathaxe](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/deathaxe/32/52468_2.png) [@deathaxe](https://forum.sublimetext.com/u/deathaxe)\
**Post date:** [June 26, 2026, 7:43am UTC](https://forum.sublimetext.com/t/how-to-get-a-specific-to-views-settings-non-inherited/78792/5 "2026-06-26T07:43:17Z")

</div>

> [@Arch-kain](#):
>
> I didn’t look deeply inside it, but it seems it is not enough. → _“What about all plugins that added settings in their own sublime-settings ?”_

Not relevant as `view.settings()` doesn’t handle plugin-specific settings. It only respects “Preferences.sublime-settings”, syntax specific, project-specific, … .
