Rename refactoring for Visualforce components and attributes

Issue #2280 new
Eric Kintzer created an issue

From time-to-time, VF components need to be developed, lately, for VF email templates where VF is still useful. However, in IC, you can’t rename a VF component like you can an Apex Class or Trigger.

Inspired by this (vain) attempt to rename a VF Component

  • I had a VF component named Foo; compiled fine. 
  • I decided to refactor (rename) it to Bar 
  • As there's no component name like a className, I went to the Project pane, clicked the project file Foo and did Refactor | Rename to Bar.

Result:

  • File was renamed to Bar.component; no change to the server
  • file's metadata-xml <label> attribute was left as Foo
  • Subsequent edits to Bar generate compile error Required field is missing: label