| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) Red Hat Incorporated 2006. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <title> |
| Generating a config file for the Formatter Application |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Generating a config file for the Formatter Application |
| </h1> |
| <p> |
| Generating a config file for the Formatter Application involves modifying the code formatter settings |
| for a Java Project and copying org.eclipse.jdt.core.prefs out of the .settings directory for that project. |
| </p> |
| <ol> |
| <li> |
| Select a java project, open the pop-up menu and choose <strong>Properties</strong>. |
| </li> |
| |
| <li> |
| Select the <strong>Code Style > Formatter</strong> page and check <strong>Enable project specific sttings</strong>. |
| </li> |
| <li> |
| Select or edit a profile as explained above. |
| </li> |
| |
| <li> |
| Click <strong>OK</strong> when you are done. |
| </li> |
| |
| <li> |
| Use either a file manager or the command line to copy <b><code>workspace/YourJavaProject/.settings/org.eclipse.jdt.core.prefs</code></b> |
| to a new location. |
| </li> |
| |
| </ol> |
| </p> |
| <p> |
| <img src="../images/ngrelt.png" alt="Related tasks" border="0" > |
| </p> |
| <p> |
| <a href="tasks-68.htm">Setting code formatting preferences</a><br> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference" border="0" > |
| </p> |
| <p> |
| <a href="../reference/ref-17.htm">Code Formatter</a><br> |
| </p> |
| |
| </body> |
| </html> |
| |