I can't get the refactoring function to work.
I can highlight code and select refactor but it always says there is nothing available. I'm just looking for a function extractor. (It will be of real help to my students.)
Is there something else I'm supposed to be doing or is it still broken?
Thanks
Hi @dpetticrew . Unfortunately it is still broken. This bug is being tracked by the Arduino IDE developers here:
opened 02:37PM - 04 Sep 22 UTC
priority: medium
topic: code
type: imperfection
phase: design
criticality: medium
### Describe the problem
Right clicking on the sketch editor view opens a con… text menu that offers various useful operations that can be done on the selection:

🐛 The "**Refactor...**" and "**Source Action...**" context menu items don't appear to be usable with Arduino sketches. They increase the complexity and clutter of the Arduino IDE user interface without adding anything of value.
### To reproduce
1. Select any code in the sketch editor view.
1. Right click on the selection.
1. Select "**Refactor...**" from the context menu.
😕 A tooltip appears: "**No refactorings available**"
1. Right click on the selection.
1. Select "**Source Action...**" from the context menu.
😕 A tooltip appears: "**No source actions available**"
### Expected behavior
All items in the editor context menu are useful.
### Arduino IDE version
2.0.0-rc9.2.snapshot-20cc34c
### Operating system
Windows, Linux
### Operating system version
Windows 10, Ubuntu 20.04
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://github.com/arduino/arduino-ide#nightly-builds)
- [X] My report contains all necessary details
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.
system
Closed
March 28, 2023, 7:07am
4
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.