Skip to content

Instantly share code, notes, and snippets.

@arphox
Created November 22, 2021 06:32
Show Gist options
  • Save arphox/8c8b0a6891aded4296078a918257c050 to your computer and use it in GitHub Desktop.
Save arphox/8c8b0a6891aded4296078a918257c050 to your computer and use it in GitHub Desktop.
ReSharper surround template to wrap something with `Action act = () => { }`.
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/Shortcut/@EntryValue">act_action</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/Description/@EntryValue">Action act = () =&gt; { ... }</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/Text/@EntryValue">Action act = () =&gt; $SELECTION$$END$</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/Mnemonic/@EntryValue">6</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/IsBlessed/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/Applicability/=Surround/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7073E3F0F2DB19498E12CA0730F9FFD3/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String></wpf:ResourceDictionary>

Use the .DotSettings file to import.

Preview:

Action act = () => $SELECTION$$END$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment