clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 16 lines 438 B view raw
1import json5 2 3# import json 4 5# Load the copied settings file 6with open("vscode/settings.json", "r") as f: 7 data = json5.load(f) 8 9# Remove the unwanted dictionaries 10if "codegpt.apiKey" in data: 11 del data["codegpt.apiKey"] 12 13# Save the modified data back to the copied file 14with open("vscode/settings.json", "w") as f: 15 f.write(json5.dumps(data, indent=4)) 16 # json.dump(data, f, indent=4) #this will print without leading commas