⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.htm

📁 代码模版 codtemplate
💻 HTM
📖 第 1 页 / 共 2 页
字号:
			<td valign="top" width="187">PATH</td>
			<td>Returns the drive and directory parts of the key's value</td>
		</tr>
		<tr>
			<td valign="top" width="121"><strong>BASENAME</strong></td>
			<td valign="top" width="187">BASENAME</td>
			<td>Returns the file name and extension parts of the key's value.</td>
		</tr>
	</tbody></table>
<p>For example:</p>
<pre lang="c++">#{Sample
  User name: &lt;%USERNAME:U%&gt; // User name uppercased
  GUID: &lt;%GUID:R=-_:U%&gt;     // GUID replacing all the '-' with '_' and uppercased
  File's base name: &lt;%FILE:BASENAME%&gt;
  m_a is a &lt;%?Access:values= public,protected,private%&gt; variable. 
}#</pre>
<p>Will expand to:</p>
<pre lang="c++">  User name: VELASQUEZE // User name uppercased
  GUID: 33784DF9_4EF5_49AE_8E8B_2F8FAAC8B1A2     // GUID replacing all the '-' with '_' and uppercased
  File's base name: connect.cs
  m_a is a protected variable.</pre>
<h2>Updates</h2>
<h3><a name="LastVersion">Version 1.9 - RC2&nbsp;(04/12/04)</a></h3>
<ul>
	<li>
	Autocomplete was deleting&nbsp;part of the text beyond the template id.
	<li>
		Templates which started with whitespaces got misaligned when inserted. (Thanks 
		to EnderJSC for reporting this)
	</li>
</ul>
<li>
	<h3>Version 1.9 - RC1&nbsp;(04/08/04)</A></h3>
	<ul>
		<li>
			Added support for include template files. Lines between template definitions 
			that start with&nbsp;"<strong>#include</strong>" indicate the template file 
		to be included. If the filename does not include an absolute path, 
		Code&lt;Template&gt; will try to locate the file in the current user's roaming 
		profile.(Thanks to Ken Blood for the suggestion)
		<li>
		Added support for per-language template files. For example, the "CodeTmpl.cs" 
		template file will be used for C# files, "CodeTmpl.cpp" will be used for C++ 
		files, etc.
		<li>
			Added support for multi-line prompt tags using the "<strong>MULTILINE</strong>" 
		formatter.
		<li>
		Added support for nested templates. (Thanks to Alex Kucherenko&nbsp;for the 
		idea)
		<li>
		Fixed a bug in which the tag would not be redisplayed if the 
		user&nbsp;cleared&nbsp;the textbox&nbsp;in the prompts dialog. (Thanks to 
		Jean-Claude Lanz for reporting this)
		<li>
		The "Rebind Keyboard" was binding the keyboard to the wrong command.
		<li>
		The "Rebind Keyboard" menu item will now automatically create a copy of the 
		default keyboard binding if necessary.
		<li>
		Fixed a bug&nbsp;when using the AutoComplete to insert a template, the contents 
		of the clipboard got replaced by the template id.
		<li>
		Added support for administrative installs.
		<li>
		The addin commands are now removed when uninstalling.
		<li>
			Now using Visual Studio .NET 2003 for development.</li>
	</ul>
	<h3>Version 1.8.5 (08/10/03)</h3>
	<ul>
		<li>
		The '&lt;', '&gt;' and '%' characters can now be escaped by preceding them with 
		a backslash. This allows to embed ASP tags in a template. (Thanks to popsy1111 
		for the suggestion)
		<li>
			Menu separators could not be used in the root menu. (Thanks to rb126 for 
			reporting this)</li>
	</ul>
	<h3>Version 1.8.4 (04/03/03)</h3>
	<ul>
		<li>
			The "extra carriage return" bug rose back from the dead in version 1.8.3. 
			(Thanks to matt310 for reporting this)
		</li>
	</ul>
	<h3>Version 1.8.3 (04/01/03)</h3>
	<ul>
		<li>
		Due to a bug introduced in version 1.8.1, the template did not display as 
		expected when previewed in the template parameter dialog. (Thanks to Kris 
		Vandermotten for spotting this)
		<li>
		Added support for comments. Lines between template definitions that start with 
		an exclamation mark (!) introduce a single line comment that will not be 
		inserted in the editor. (Thanks to Kris Vandermotten for the suggestion)
		<li>
		Added help menu item that opens the readme.htm file in the default browser. 
		(Thanks to Kris Vandermotten for the suggestion)
		<li>
			When a prompt tag was used several times in a template it's value would not be 
			inserted in places where the tag was used with different formatters from the 
			first instance. (Thanks to Jason Buxton for reporting this)
		</li>
	</ul>
	<h3>Version 1.8.2 (03/26/03)
	</h3>
	<ul>
		<li>
		The templateID was deleted after pressing ctrl+' even if it could not be found. 
		(Thanks to M.Lansdaal and Stefano Del Furia's students for spotting this)
		<li>
			Changed the default keyboard binding to Ctrl+Space. If the templateID cannot be 
			found, then the default autocomplete function is invoked. (Thanks to David 
			Hearn for the suggestion)
		</li>
	</ul>
	<h3>Version 1.8.1 (03/12/03)</h3>
	<ul>
		<li>
			The addin was inserting an extra linefeed at the end of the template. (Thanks 
			to Stefano Del Furia for spotting this)
		</li>
	</ul>
	<h3>Version 1.8 (02/30/03)</h3>
	<ul>
		<li>
		The data file is now kept in the roaming profile. If a local copy exists, it is 
		moved to the roaming profile; if it doesn't, a copy from the sample file is 
		made (Thanks to Stefano Del Furia for the suggestion)
		<li>
			Fixed some formatting bugs in the inserted text, specially when using the 
			cursor positioning token (<i>%$%</i>) (Thanks to Stefano Del Furia for 
		spotting this)
		<li>
		If the template file was misformed, the popup menu didn't allow the user to 
		open the file inside Visual Studio for editing. (Thanks to Stefano Del Furia 
		for spotting this)
		<li>
			The <strong>U</strong>ppercase and <strong>L</strong>owercase formatters 
		where extended to allow an optional start position and length. (Thanks to Jason 
		Buxton for the suggestion)
		<li>
			The <strong>R</strong>eplace formatter was extended to allow the replacement of 
			substrings in addition to the replacement of single characters.
		</li>
	</ul>
	<h3>Version 1.7 (02/18/03)</A></h3>
	<ul>
		<li>
		Added named ids for menu items. Typing the menuid and then pressing ctrl+' will 
		insert the template without going through the menus. (Thanks to Stefano del 
		Furia and jsimons007 for the suggestion) Note that Visual Studio does not allow 
		the default keyboard scheme to be modified, so a copy must be created manually 
		to enable keyboard binding. After creating a copy of the default keyboard 
		scheme, click "Rebind Keyboard" in the addin's menu.
		<li>
		Reassigned the keyboard binding introduced in version 1.6 to the new template 
		insertion method just described. The original method wasn't very useful.
		<li>
		Prompt fields that were never changed got inserted into the text editor with 
		the raw tag text instead of an empty string.
		<li>
			Added support for Visual Studio .NET 2003 - Final Beta (a.k.a Everett)
		</li>
	</ul>
	<h3>Version 1.6 (02/03/03)</h3>
	<ul>
		<li>
		Added simple keyboard binding (ctrl+') to the toolbar button. Note that Visual 
		Studio does not allow the default keyboard scheme to be modified, so a copy 
		must be created manually to enable keyboard binding. After creating a copy of 
		the default keyboard scheme, click "Rebind Keyboard" in the addin's menu.
		<li>
			The toolbar should always be visible after installation now. (This problem was 
			reported by several users) If the problem persists, run the development 
			enviroment with the <em>setup</em> command line option (<em>devenv.exe /setup</em>). 
			This will force all the addins to recreate their commands and toolbars.
		</li>
	</ul>
	<h3>Version 1.5 (01/07/03)</h3>
	<ul>
		<li>
		Changed the version numbering to x.x instead of x.x.x.x.
		<li>
		Code&lt;Template&gt;'s toolbar has a real bitmap instead of the smiley face.
		<li>
		Changes to the template file now are auto-detected. (Thanks to Oz Solomonovich 
		for the suggestion)
		<li>
		SmartFormat isn't applied to the inserted text anymore. (Thanks to Oz 
		Solomonovich for the suggestion)
		<li>
		The parameters dialog now has a template replacement preview. (Thanks to Alex 
		Kucherenko for the suggestion)
		<li>
			Prompt keywords now accept the <strong>values</strong> and <strong>fixedvalues</strong>
		formatters that show up in the parameters dialog as comboboxes instead of a 
		textbox. (Thanks to Alex Kucherenko for the suggestion)
		<li>
		The inserted text can be undone in one step.
		<li>
		Changed the way the template text is inserted into the editor. Now the text 
		isn't modified by the editor in any way (for example, when the template starts 
		a line with a single line comment, the "Smart Comment Editing" feature of the 
		editor added more slash characters and messed up the template formatting)
		<li>
			The CodeTmpl.txt file is now saved in the user's directory ("<em>C:\Documents and 
				Settings\<strong>username</strong>\Local Settings\Application Data\Eddie 
				Velasquez\CodeTemplate\codetmpl.txt</em>") This was changed to avoid 
			loosing your changes when updating or uninstalling future versions of 
			CodeTemplate. <strong>Make sure you manually save your modified CodeTmpl.txt before 
				installing this update</strong>.
		</li>
	</ul>
	<h3>Version 1.0.0.4 (11/15/02)</h3>
	<ul>
		<li>
			Added the <b>SELECTION</b>
		keyword, that inserts the currently selected text. (Thanks to Alex Kucherenko 
		for the suggestion)
		<li>
			Ocassionally, when the caret was in the last column of a line, an "Invalid 
			parameter" message would pop up. (Thanks to rchecketts for spotting this)
		</li>
	</ul>
	<h3>Version 1.0.0.1 (11/13/02)</h3>
	<ul>
		<li>
		Fixed installer problem where Visual Studio wasn't creating creating the 
		add-in's commands. (Thanks to Paul Watson for spotting this)
		<li>
			Removed code that tried to add a default keybinding. (It always fails and I 
			have no idea why)
		</li>
	</ul>
	<h3>Version 1.0 (11/11/02)</h3>
	<ul>
		<li>
			Initial Release
		</li>
	</ul>
	<h2>To Do</h2>
	<ul>
		<li>
			Write better documentation.</li></ul>
</li>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -