Skip to content

Instantly share code, notes, and snippets.

@SebastianAigner
Last active September 9, 2021 15:27
Show Gist options
  • Save SebastianAigner/62119536f24597e630acfdbd14001b98 to your computer and use it in GitHub Desktop.
Save SebastianAigner/62119536f24597e630acfdbd14001b98 to your computer and use it in GitHub Desktop.
Structural Search and Replace Template to mark RState interfaces as external

This is a template for Structural Search and Replace to mark State interfaces as external. To use it, open SSR via File | Find | Replace Structurally, click on the wrench icon, and select "Import Template from Clipboard". You can then click "Find" and "Replace All" to annotate all interfaces properly.

<replaceConfiguration name="Mark State interface as external" text="interface $name$ : State" recursive="false" caseInsensitive="true" type="Kotlin" pattern_context="default" reformatAccordingToStyle="false" shortenFQN="false" replacement="external interface $name$ : State">
  <constraint name="__context__" within="" contains="" />
  <constraint name="name" within="" contains="" />
</replaceConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment