From 4bcb8538a366f4be75ae11d8419e50c416ab1ae4 Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Fri, 2 Dec 2016 17:05:47 -0800 Subject: [PATCH] Add Toggle Comment actions (#16253) --- src/vs/code/electron-main/menus.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vs/code/electron-main/menus.ts b/src/vs/code/electron-main/menus.ts index 2f2099d1b53..9104bd4774b 100644 --- a/src/vs/code/electron-main/menus.ts +++ b/src/vs/code/electron-main/menus.ts @@ -517,6 +517,8 @@ export class VSCodeMenu { const emmetExpandAbbreviation = this.createMenuItem(nls.localize({ key: 'miEmmetExpandAbbreviation', comment: ['&& denotes a mnemonic'] }, "Emmet: E&&xpand Abbreviation"), 'editor.emmet.action.expandAbbreviation'); const showEmmetCommands = this.createMenuItem(nls.localize({ key: 'miShowEmmetCommands', comment: ['&& denotes a mnemonic'] }, "E&&mmet..."), 'workbench.action.showEmmetCommands'); + const toggleLineComment = this.createMenuItem(nls.localize({ key: 'miToggleLineComment', comment: ['&& denotes a mnemonic'] }, "&&Toggle Line Comment"), 'editor.action.commentLine'); + const toggleBlockComment = this.createMenuItem(nls.localize({ key: 'miToggleBlockComment', comment: ['&& denotes a mnemonic'] }, "Toggle &&Block Comment"), 'editor.action.blockComment'); [ undo, @@ -532,6 +534,8 @@ export class VSCodeMenu { findInFiles, replaceInFiles, __separator__(), + toggleLineComment, + toggleBlockComment, emmetExpandAbbreviation, showEmmetCommands ].forEach(item => winLinuxEditMenu.append(item)); -- GitLab