Community
Participate
Working Groups
Created attachment 275049 [details] renames in different languages At the moment when you rename a header file in the Project Explorer it always triggers a refactor as part of that rename. For example if you have: main.c: #include "hello.h" #include <stdio.h> ... and in the same folder you have hello.h. Then if you select hello.h in the Project Explorer, choose Rename (context menu or F2), type a new name (like "hello2.h") the main.c becomes this: #include <stdio.h> #include "hello2.h" ... This happens because various preferences kick in affecting the rename. For example, the reordering that happens above is Preferences -> C/C++ -> Code Style -> Organize Imports -> Allow reordering of includes. This bug is to allow you to rename files in C projects without anything other than the rename happening. For example, the JDT has a checkbox when you rename a Java file that says "Update references" and a few other options. What I would like is the rename dialog to have a new checkbox "Update references" like JDT/PyDev (see attachment) and a link to the C/C++ -> Code Style preferences pages to help users discover what may happen as a result of the rename.
New Gerrit change created: https://git.eclipse.org/r/127738
After further consideration, a few changes to the spec: 1) Only have one checkbox, "Update references", like the first checkbox in JDT 2) Have the link directly to Organize Includes preference page to emphasize them, they are the most relevant. 3) Have the dialog apply to IFiles and IContainers (projects/folders), not just to files in a project. This is because renaming a folder/project can also cause reference changes to affect source files
Gerrit change https://git.eclipse.org/r/127738 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=19cbbb52d1620b91918fd8855abcdf5d5243fc01
Baha, Can you create an New and Noteworthy for this (With screenshot): https://wiki.eclipse.org/CDT/User/NewIn96
https://wiki.eclipse.org/CDT/User/NewIn94 has some screenshot examples.
Hi Jonah, I added a refactoring part in N&NW with two screenshots.