Skip to content

Remove "Format Selection" from editor context menu #1395

@per1234

Description

@per1234

Describe the request

Remove the "Format Selection" item from the editor context menu.

🙂 The IDE's user interface will be made more streamlined without significant loss of functionality. The capability will still be available via the keyboard shortcut and "Format Selection" command palette item if it is wanted by some users.

Describe the current behavior

Right clicking on the sketch editor view opens a context menu that offers various useful operations that can be done on the selection:

image

There are two items in the menu for formatting code:

  • Format Document
  • Format Selection

The first provides the essential functionality of formatting the entire sketch file, more commonly accessed via the Tools > Auto Format menu item or Ctrl+T keyboard shortcut.

The second provides the more niche capability of applying formatting only to the text currently selected in the editor view. It is not clear that this is something of use to any significant number of users.

Arduino IDE version

2.0.0-rc9.2.snapshot-20cc34c

Operating system

Windows, Linux

Operating system version

Windows 10, Ubuntu 20.04

Additional context

Related: #1394

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions