This commit is contained in:
2022-12-07 16:23:38 +08:00
parent 1bb3a4f8bf
commit d0ffeb34a9
5 changed files with 37 additions and 14 deletions

11
code-cleanup-on-save.csx Normal file
View File

@@ -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);