<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Refactoring</title> <link rel="stylesheet" type="text/css" href="../help.css"> </head> <body> <h1 role="main">Refactoring</h1> <p>Use the C/C++ Projects, Outline, or the Editor view <strong>Refactor > Rename</strong> context menu to refactor class & type names, methods, function & member names.</p> <p>To refactor an object select the object, right click and select <strong>Refactor > Rename...</strong></p> <p> <img src="../images/cdt_refactor.png" alt="Editor View showing Refactor option" ></p> The refactoring engine will rename all instances of the object in all referenced files. You can Undo refactoring by right clicking a second time and selecting <strong>Refactor > Undo</strong></p> <p> <img src="../images/cdt_refactor_undo.png" alt="Editor View showing Refactor Undo option" ></p> <p><img src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"> <br> <a href="../concepts/cdt_c_open_declarations.htm">Open Declaration</a><br> <a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br> <a href="../concepts/cdt_c_search.htm">C/C++ search</a></p> <p><img src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21"> <br> <a href="cdt_t_search.htm">Searching for C/C++ elements</a></p> <p><img src="../images/ngref.gif" ALT="Related reference" width="143" height="21"> <br> <a href="../reference/cdt_u_search.htm">C/C++ search page, Search dialog box</a></p> <img src="../images/ng00_07.gif" ALT="IBM Copyright Statement" > </body> </html>