Plugin โ€บ addCommand

Plugin.addCommand() method

Register a command globally. Registered commands will be available from the @{link https://help.md/Plugins/Command+palette Command palette}. The command id and name will be automatically prefixed with this pluginโ€™s id and name.

Signature:

addCommand(command: Command): Command;

Parameters

ParameterTypeDescription
commandCommand

Returns:

Command