Skip to content

Commit 6b32e79

Browse files
restore Auto Format under Tools menu
1 parent 295e724 commit 6b32e79

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

arduino-ide-extension/src/browser/contributions/edit-contributions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,13 @@ ${value}
193193
), // XXX: The Java IDE uses `Use Selection For Find`.
194194
order: '3',
195195
});
196+
197+
// `Tools`
198+
registry.registerMenuAction(ArduinoMenus.TOOLS__MAIN_GROUP, {
199+
commandId: EditContributions.Commands.AUTO_FORMAT.id,
200+
label: nls.localize('arduino/editor/autoFormat', 'Auto Format'), // XXX: The Java IDE uses `Use Selection For Find`.
201+
order: '0',
202+
});
196203
}
197204

198205
override registerKeybindings(registry: KeybindingRegistry): void {

arduino-ide-extension/src/browser/menu/arduino-menus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export namespace ArduinoMenus {
8686

8787
// -- Tools
8888
export const TOOLS = [...MAIN_MENU_BAR, '4_tools'];
89-
// `Archive Sketch`, `Manage Libraries...`, `Serial Monitor`, Serial Plotter
89+
// `Auto Format`, `Archive Sketch`, `Manage Libraries...`, `Serial Monitor`, Serial Plotter
9090
export const TOOLS__MAIN_GROUP = [...TOOLS, '0_main'];
9191
// `WiFi101 / WiFiNINA Firmware Updater`
9292
export const TOOLS__FIRMWARE_UPLOADER_GROUP = [

0 commit comments

Comments
 (0)