-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
231 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>ddc</Title> | ||
<Shortcut>ddc</Shortcut> | ||
<Description>Code snippet for: Desharp.Debug.Configure(new Desharp.DebugConfig {...});</Description> | ||
<Author>Tom Flídr</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>enabled</ID> | ||
<Default>true</Default> | ||
<ToolTip>Debug dumping into output is enabled or not.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>depth</ID> | ||
<Default>3</Default> | ||
<ToolTip>Default dumping depth.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>directory</ID> | ||
<Default>logs</Default> | ||
<ToolTip>File logs directory, relative path from application root dir.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>outputType</ID> | ||
<Default>Html</Default> | ||
<ToolTip>File logs output type.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
<ToolTip>Snippet end.</ToolTip> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Configure(new Desharp.DebugConfig { | ||
Enabled = $enabled$, | ||
Depth = $depth$, | ||
Directory = "~/$directory$", | ||
OutputType = Desharp.OutputType.$outputType$ | ||
});$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>ddd</Title> | ||
<Shortcut>ddd</Shortcut> | ||
<Description>Code snippet for: Desharp.Debug.Dump(obj);</Description> | ||
<Author>Tom Flídr</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>obj</ID> | ||
<Default>obj</Default> | ||
<ToolTip>Any C# object to dump into HDD log.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
<ToolTip>Snippet end.</ToolTip> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Dump($obj$);$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>dddo</Title> | ||
<Shortcut>dddo</Shortcut> | ||
<Description>Code snippet for dump with options: Desharp.Debug.Dump(obj, new Desharp.DumpOptions {...});</Description> | ||
<Author>Tom Flídr</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>obj</ID> | ||
<Default>obj</Default> | ||
<ToolTip>Any C# object to dump into HDD log.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>depth</ID> | ||
<Default>4</Default> | ||
<ToolTip>First argument C# object dumping depth.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>return</ID> | ||
<Default>false</Default> | ||
<ToolTip>Return dumped object as string.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
<ToolTip>Snippet end.</ToolTip> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Dump($obj$, new Desharp.DumpOptions { | ||
Depth = $depth$, | ||
Return = $return$ | ||
});$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>dde</Title> | ||
<Shortcut>dde</Shortcut> | ||
<Description>Code snippet for logging exceptions: Desharp.Debug.Log(e);</Description> | ||
<Author>Tom Flídr</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>e</ID> | ||
<Default>e</Default> | ||
<ToolTip>Any C# Exception instance to dump into HDD log.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
<ToolTip>Snippet end.</ToolTip> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Log($e$);$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>ddl</Title> | ||
<Shortcut>ddl</Shortcut> | ||
<Description>Code snippet for: Desharp.Debug.Log(obj, Desharp.Level.DEBUG);</Description> | ||
<Author>Tom Flídr</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>obj</ID> | ||
<Default>obj</Default> | ||
<ToolTip>Any C# object to dump into HDD log.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>level</ID> | ||
<Default>DEBUG</Default> | ||
<ToolTip>Log level - ALERT, CRITICAL, DEBUG, EMERGENCY, ERROR, INFO, JAVASCRIPT, NOTICE or WARNING.</ToolTip> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
<ToolTip>Snippet end.</ToolTip> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Log($obj$, Desharp.Level.$level$);$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | ||
<CodeSnippet Format="1.0.0"> | ||
<Header> | ||
<Title>dds</Title> | ||
<Shortcut>dds</Shortcut> | ||
<Description>Code snippet for: Desharp.Debug.Stop();</Description> | ||
<Author>Tom Flídr</Author> | ||
<SnippetTypes> | ||
<SnippetType>Expansion</SnippetType> | ||
</SnippetTypes> | ||
</Header> | ||
<Snippet> | ||
<Declarations> | ||
<Literal Editable="false"> | ||
<ID>DesharpDebug</ID> | ||
<Function>SimpleTypeName(global::Desharp.Debug)</Function> | ||
</Literal> | ||
<Literal> | ||
<ID>snippetEnd</ID> | ||
<Default></Default> | ||
<ToolTip>Snippet end.</ToolTip> | ||
</Literal> | ||
</Declarations> | ||
<Code Language="csharp"><![CDATA[$DesharpDebug$.Stop();$snippetEnd$]]></Code> | ||
</Snippet> | ||
</CodeSnippet> | ||
</CodeSnippets> |