| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html lang="en"> |
| <HEAD> |
| |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2011. 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"> |
| |
| <LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css"> |
| <title>Setting the content type of a file extension</title> |
| <meta name="keyword" content="team"> |
| <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script> |
| </HEAD> |
| |
| <BODY BGCOLOR="#ffffff"> |
| <H1 CLASS="Head"> Setting the content type of a file extension</H1> |
| <P CLASS="Para">CVS repositories distinguish between files that contain ASCII |
| data and those that do not. For ASCII files, additional helpful functionality |
| is available. This includes:</P> |
| <ul> |
| <li>Proper end of line conversion between the client and the server. This ensures |
| that a Windows user and a UNIX user can work on the same file without introducing |
| incompatibilities.</li> |
| <li>Auto merging of conflicts. If a file contains both incoming and outgoing |
| changes but none on the same line as another, then the file may be automatically |
| merged when updating.</li> |
| </ul> |
| <p class="Para">Certain file types invariably contain either ASCII data or binary |
| data. For example, *.txt files usually contain ASCII data, and *.exe files usually |
| contain binary data. Eclipse comes with a pre-defined set of file types, which |
| you may add to or modify.</p> |
| <P CLASS="Para">To set the content type associated with a file extension: </P> |
| <ol> |
| <li>Open the |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.team.ui.TextPreferences)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="command link"> |
| <b>Team > File Content</b></a> preference page. |
| This page displays a list of file extensions and content type (ASCII or Binary) |
| for file extensions whose content type is known.</li> |
| <li> |
| <p CLASS="Para">To add a file extension, click the <b>Add Extension</b> button and enter |
| the file extension in the text prompt that appears. Once <b>OK</b> is clicked, |
| the extension will be added to the list with a content type of ASCII.</p> |
| </li> |
| <li>To change the content type for an existing file extension, select the file |
| extension entry and click the <b>Change</b> button. This will toggle the type |
| from ASCII to Binary or vice versa.</li> |
| <li>To remove a file extension, select the file extension entry and click the |
| <b>Remove</b> button.<br> |
| </li> |
| </ol> |
| |
| <p><img border="0" src="../images/ngrelc.png" alt="Related concepts" > |
| <br><a href="../concepts/concepts-26.htm">Team programming with CVS</a> |
| </p> |
| |
| |
| <p><img border="0" src="../images/ngrelr.png" alt="Related reference" > |
| <br><a href="../reference/ref-47.htm">CVS</a> |
| </p> |
| |
| |
| |
| </BODY> |
| </HTML> |