Skip to main content

editor API experimental

The editor api module allows you to get the current user's editor preferences.

Usage

import { experimental } from '@replit/extensions';
const { editor } = experimental;

Methods

editor.getPreferences

Returns the current user's editor preferences.

getPreferences(): Promise<EditorPreferences>

Types

EditorPreferences

Editor Preferences

PropertyType
__typenamestring
codeIntelligenceboolean
codeSuggestionboolean
fontSizenumber
indentIsSpacesboolean
indentSizenumber
keyboardHandlerstring
minimapDisplaystring
multiselectModifierKeystring
wrappingboolean
Was this helpful?