📄 c-customize2.html
字号:
</dl></div> </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="87272">9.2.5 Version Control</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="87273"> </a>If your organization uses a source-control (sometimes called configuration management) system to manage changes to source code, you probably need to execute a command to "check out" a file before you can make changes to it. Select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Options</font></b> in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu, then click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Version Control </font></b>to create commands to automatically check out or check in an open file using your version control system. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Version Control </font></b>page is shown in <a href="c-customize2.html#87280">Figure 9-6</a>.<div class="frame"><h4 class="EntityTitle"><a name="87280"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-6: Version Control Page</font></a></h4><dl class="margin"><div class="Anchor"><a name="87284"> </a><img class="figure" border="0" src="images/c-customize5.gif"></div></dl></div></p><dd><p class="Body"><a name="87285"> </a>The following choices are available on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Version Control </font></b>page:</p></dl><dl class="margin"><dd><div class="Item"><a name="87286"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Checkin</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="87287"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Checkin</font></b> text box allows you to enter the command that checks a file in to your version control system. The button at the end of the box opens a pop-up menu which has a <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Browse</font></b> item to help you locate the command and macros to provide the Tornado context (see <a href="c-customize2.html#87299">Table 9-1</a>).</div><br></dl><dd><div class="Item"><a name="87291"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Checkout</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="87292"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Checkout</font></b> text box allows you to enter the command that checks a file out of your version control system. The button at the end of the box opens a pop-up menu which has a <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Browse</font></b> item to help you locate the command and macros to provide the Tornado context (see <a href="c-customize2.html#87299">Table 9-1</a>).</div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="89254"> </a><p class="table"><h4 class="EntityTitle"><a name="87299"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 9-1: Macros for Version Control</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="87307"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Menu Entry</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="87309"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Macro</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="87311"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="87313"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Example</font></b></div></th><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="87315"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">File nam</font></b>e </div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="87317"> </a><b>$filename</b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="87319"> </a>Name of the active file, without path information.</div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="87321"> </a><b class="file">zap.c</b></div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="87323"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Comment </font></b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="87325"> </a><b>$comment</b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="87327"> </a>Prompt for a checkin or checkout comment; any parameter needed by the tool can also be entered. </div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="87329"> </a>See <a href="c-customize2.html#87719">Figure 9-7</a>.</div></td><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="89255"> </a><div class="frame"><h4 class="EntityTitle"><a name="87719"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-7: Modify Comment Window</font></a></h4><dl class="margin"><div class="Anchor"><a name="87721"> </a><img class="figure" border="0" src="images/c-customize14.gif"></div></dl></div></p></dl><dl class="margin"><dd><div class="Item"><a name="87330"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Defaults</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="87331"> </a>Selecting an item from the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Defaults</font></b> drop-down list box automatically fills in the appropriate commands for the selected version control system.</div><br></dl><dd><div class="Item"><a name="87332"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Advanced</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="87333"> </a>Clicking the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Advanced</font></b> button opens the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Customize Tools</font></b> dialog box, which can be used to put commands on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu. Anything that can not be done on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Version Control</font></b> page can be done on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Customize Tools</font></b> dialog box. </div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="87752"> </a>Commands created with the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Checkin</font></b> and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Checkout</font></b> text boxes appear on the pop-up menu accessed by right-clicking on the source file in the Tornado <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Editor</font></b> window or the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Project</font></b> window. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="87334">9.2.6 Fonts/Colors</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="87335"> </a>Select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Options</font></b> in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Tools</font></b> menu, then click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Fonts/Colors</font></b> to change the fonts and colors that Tornado uses for all text windows: the editor window, the shell, and the debugger command window. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Fonts/Colors</font></b> page is shown in <a href="c-customize2.html#87342">Figure 9-8</a>.<div class="frame"><h4 class="EntityTitle"><a name="87342"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 9-8: Fonts/Colors Page </font></a></h4><dl class="margin"><div class="Anchor"><a name="87346"> </a><img class="figure" border="0" src="images/c-customize6.gif"></div></dl></div></p><dd><p class="Body"><a name="87348"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Font</font></b> selection boxes allow you to select a typeface, weight, and size in points. Different fonts are appropriate for different working environments: for example, usually a smaller point size is more desirable on a lap-top than on a large desktop display. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Sample</font></b> box shows you what your selections will look like. </p><dd><p class="Body"><a name="87350"> </a>If you check the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Syntax Coloring</font></b> box, Tornado will identify various distinguished window elements by color, including syntactically distinguished text and the attribute-panel markers that appear during debugging.</p><dd><p class="Body"><a name="87351"> </a>You can choose which window element to color by clicking an entry in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Items</font></b> list box. <a href="c-customize2.html#87361">Table 9-2</a> describes the window elements available for coloring. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Foreground Color</font></b> and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Background Color</font></b> panels allow you to control the foreground and background independently for each window element; click on the desired color in either list to assign that color to the currently selected window element.<p class="table"><h4 class="EntityTitle"><a name="87361"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 9-2: Window Elements for Coloring </font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="87365"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Color Preferences Item</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="87367"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b></div></th><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="87369"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Source Text (Default)</font></b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="87371"> </a>Editor-window color for text not otherwise highlighted.</div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="87373"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Breakpoint Line</font></b></div></td><td width="10"> </td><td colspan=1 rowspan=1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -