VisualStudio |内部注释/摘要块的CodeSnippet(IntelliSense)

时间:2017-12-08 10:41:35

标签: visual-studio documentation resharper code-snippets

我有以下code snippet。我想在summary块中插入此代码段。当我使用上下文菜单时,它正在工作,但我想通过快捷方式插入此代码段。您有什么建议我可以解决这个问题吗?

langword.snippet

<?xml version="1.0" encoding="utf-8" ?> 
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
          <Title>langword reference</Title>
          <Description>Inserts a reference for keywords.</Description>
          <Author>Dominic Jonas</Author>
          <Shortcut>langword</Shortcut>
          <SnippetTypes>
            <SnippetType>Expansion</SnippetType>
          </SnippetTypes>          
        </Header>
        <Snippet>
        <Declarations>
        <Literal>
            <ID>Keyword</ID>
            <ToolTip>Enter the desired Keyword here.</ToolTip>
            <Default>null</Default>
        </Literal>
        </Declarations>
            <Code Language="CSharp" Kind="any">
                <![CDATA[<see langword="$Keyword$"/> $end$]]>
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>

这是当前的解决方案:

wcontext Menu

这就是我想要的(智能感知;快捷方式),但不起作用:

IntelliSense

0 个答案:

没有答案
相关问题