をパラメータを作成するこんにちは、私は私が定義済みの値を持つことができることスニペットのVisual Studioを作成したいと思います...どのようにVS 2010のスニペット
例えば
<Timeline AutoPlay="$True|FALSE$">
行う方法はありますこの?
可能な値を追加できるデフォルト以外のタグはありますか?
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/CodeSnippet">
<CodeSnippet>
<Header>
<!-- Add Header information here -->
</Header>
<Snippet>
<!-- Add additional Snippet information here -->
<Declarations>
<Literal>
<ID>SqlConnString</ID>
<ToolTip>Replace with a SQL connection string.</ToolTip>
**<Value>"Value1"</Value>
<Value>"Value2"</Value>**
<Default>"SQL connection string"</Default>
</Literal>
<Object>
<ID>SqlConnection</ID>
<Type>System.Data.SqlClient.SqlConnection</Type>
<ToolTip>Replace with a connection object in your application.</ToolTip>
<Default>dcConnection</Default>
</Object>
</Declarations>
<Code Language="CSharp">
<![CDATA[
daCustomers = new SqlClient.SqlDataAdapter();
selectCommand = new SqlClient.SqlCommand($SqlConnString$);
daCustomers.SelectCommand = selectCommand;
daCustomers.SelectCommand.Connection = $SqlConnection$;
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
良いデザインの特徴。あなたは無限にあなたが取り入れたいものを考え出すことができます。良いデザインは何を*外すかを知っている。スニペットはプログラマー向けに設計されています。 –
ええ、それはあなたが多くの機能を追加する理由です、誰も実際にすべてのMSオフィスの機能を必要としますが、実際にはいくつかの人々は... – Astronaut