diff --git a/code-cleanup-on-save.csx b/code-cleanup-on-save.csx
new file mode 100644
index 0000000..7e67684
--- /dev/null
+++ b/code-cleanup-on-save.csx
@@ -0,0 +1,11 @@
+var path = Directory.GetFiles(@".idea", "workspace.xml", SearchOption.AllDirectories).First();
+ const string findStr = """
+"keyToString": {
+""";
+ const string replaceStr = """
+"keyToString": {
+ "rider.code.cleanup.on.save": "true",
+""";
+ var content = File.ReadAllText(path);
+ content = content.Replace(findStr, replaceStr);
+ File.WriteAllText(path, content);
\ No newline at end of file
diff --git a/dot.sln b/dot.sln
index 1eb78ff..74aff93 100644
--- a/dot.sln
+++ b/dot.sln
@@ -22,6 +22,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "meta", "meta", "{AD79881E-7
git-clean.ps1 = git-clean.ps1
code-format.cmd = code-format.cmd
GenerateResx.targets = GenerateResx.targets
+ code-cleanup-on-save.csx = code-cleanup-on-save.csx
EndProjectSection
EndProject
Global
diff --git a/dotnet-tools.json b/dotnet-tools.json
index 64cfe12..4f358a6 100644
--- a/dotnet-tools.json
+++ b/dotnet-tools.json
@@ -1,12 +1,12 @@
{
- "version": 1,
- "isRoot": true,
- "tools": {
- "dotnet-t4": {
- "version": "2.3.1",
- "commands": [
- "t4"
- ]
+ "version": 1,
+ "isRoot": true,
+ "tools": {
+ "dotnet-t4": {
+ "version": "2.3.1",
+ "commands": [
+ "t4"
+ ]
+ }
}
- }
}
\ No newline at end of file
diff --git a/src/CsxEditor.cs b/src/CsxEditor.cs
new file mode 100644
index 0000000..140c863
--- /dev/null
+++ b/src/CsxEditor.cs
@@ -0,0 +1,11 @@
+namespace Dot;
+
+// ReSharper disable once UnusedType.Global
+public class CsxEditor
+{
+ // ReSharper disable once UnusedMember.Local
+ #pragma warning disable CA1822
+ private void Run()
+ #pragma warning restore CA1822
+ { }
+}
\ No newline at end of file
diff --git a/src/dot.csproj b/src/dot.csproj
index 3a64cde..eed0ce5 100644
--- a/src/dot.csproj
+++ b/src/dot.csproj
@@ -24,10 +24,10 @@
-
-
-
-
+
+
+
+
@@ -38,6 +38,6 @@
-
+
\ No newline at end of file