added Crtl + E command for Explain selected code

pull/5370/head
shubhiscoding 9 months ago committed by Aniket
parent 3e8b6040a5
commit 6deb97ab2c
  1. 5
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -750,7 +750,10 @@ export const EditorUI = (props: EditorUIProps) => {
label: intl.formatMessage({ id: 'editor.explainFunctionSol' }),
contextMenuOrder: 1, // choose the order
contextMenuGroupId: 'sol-gtp', // create a new grouping
keybindings: [],
keybindings: [
// Keybinding for Ctrl + E
monacoRef.current.KeyMod.CtrlCmd | monacoRef.current.KeyCode.KeyE
],
run: async () => {
const file = await props.plugin.call('fileManager', 'getCurrentFile')
const content = await props.plugin.call('fileManager', 'readFile', file)

Loading…
Cancel
Save