Skip to content

Set Preferences

Preferences are a key-value store that is local to each editor client. To set a key:

ts
import { Preferences } from "@vaguevoid/tools";

await Preferences.set("cool", "nice");

const preferences = await Preferences.all();
console.log(preferences.cool);