How do I get access user settings for default options (e.g. "Editor" or "Appearance")


The way to retrieve user settings is currently not exposed in the API as 0.11.0. However, if you're impatient, you can still fetch the settings for the vault.

There is a configuration object on the vault instance called config. You can retrieve user vaults with vault.getConfig('<settingName>'), where settingName is a key inside the config object. To see a list of values you can retrieve, print out the following from your Obsidian Dev Tools:

app.vault.config

You should see a list of options like: vimMode, readableLineLength, foldIndent, etc.

Sample Code

Tab vs Spaces

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const useTab = (this.app.vault as any).getConfig("useTab");
check Obsidian config
Interactive graph