Skip to content

Menu item "Edit > Select All" only select 10 lines of code #969

Closed
@ubidefeo

Description

@ubidefeo

Describe the problem

When wanting to select all the code in the current tab, if using the CMD+A shortcut it is correctly selected,
while using the menu item will only select 10 lines and it's not really clear where the starting point is, because the selection begin/end are offset from the last cursor position

To reproduce

  • open a Sketch
  • place your cursor in the code window
  • from the application menu Edit > Select All
  • unselect by clicking in an unselected part of the text
  • only 10 lines will be selected
  • use the shortcut CMD+A (CTRL+A on Windows)
  • the entire code will be selected

CleanShot 2022-04-25 at 15 36 05@2x

CleanShot 2022-04-25 at 15 36 50@2x

Expected behavior

The entire code in the current tab should be selected and ready to be acted upon

Arduino IDE version

2.0.0-rc6

Operating system

macOS

Operating system version

12.3

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report 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