Inline code style plugin
$ yarn add @aomao/plugin-code
Add to engine
import Engine, {EngineInterface} from'@aomao/engine';import Code from'@aomao/plugin-code';new Engine(...,{ plugins:[Code] })
The default shortcut key is mod+e
, and multiple shortcut keys are passed in as an array
//hotkey,hotkey?: string | Array<string>;//Use configurationnew Engine(...,{config:{"code":{//Modify shortcut keyshotkey: "shortcut key"}}})
engine.command.execute('code');//Use command to execute query current status, return boolean | undefinedengine.command.queryState('code');