<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <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>Refactoring</h1> <p>Use the C/C++ Projects, Outline, or the Editor view <b>Refactor > Rename</b> context menu to refactor class & type names, methods, function & member names.</p> <p>To refactor an object select the object, right click and select <b>Refactor > Rename...</b></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 <b>Refactor > Undo</b></p> <p> <img src="../images/cdt_refactor_undo.png" alt="Editor View showing Refactor Undo option" ></p> <p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"> <br> <a href="../concepts/cdt_c_open_declarations.htm">Open Declarations</a><br> <a href="../concepts/cdt_c_open_definitions.htm">Open Definitions</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 border="0" 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 border="0" 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_04a.gif" ALT="IBM Copyright Statement" > </body> </html>