Something went wrong. Try again.
clone of my dotfiles.ssp.sh
Something went wrong. Try again.
1234567891011121314151617import json5
# import json
# Load the copied settings filewith open("vscode/settings.json", "r") as f: data = json5.load(f)
# Remove the unwanted dictionariesif "codegpt.apiKey" in data: del data["codegpt.apiKey"]
# Save the modified data back to the copied filewith open("vscode/settings.json", "w") as f: f.write(json5.dumps(data, indent=4)) # json.dump(data, f, indent=4) #this will print without leading commas