Skip to content

Move selected code to new function #2624

Closed as duplicate of#156
Closed as duplicate of#156
@daxliniere

Description

@daxliniere

Describe the request

It would be fantastic if we could select a block of code, press a keyboard shortcut and the IDE would;

  1. ask user for name of new function (textbox popup),
  2. automatically create a new function with that name,
  3. move that code into the new function,
  4. place a pointer to that function in the original function where the moved code was.

Describe the current behavior

All manual, I'm afaid.

Arduino IDE version

2.3.4 release

Operating system

N/A

Operating system version

N/A

Additional context

No response

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions