mirror of
https://github.com/nsnail/dot.git
synced 2025-10-14 12:52:26 +08:00
<chore>
This commit is contained in:
11
code-cleanup-on-save.csx
Normal file
11
code-cleanup-on-save.csx
Normal 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);
|
Reference in New Issue
Block a user