-
字体设置保护
- 新增对
font.options.xml的检测机制 - 遇到字体配置文件时自动跳过修改流程
- 新增对
-
XML操作优化
- 使用
xmlstarlet实现精准节点操作 - 支持节点值更新和缺失节点自动创建
- 保持原有 XML 文件结构完整性
- 使用
-
备份增强
- 自动创建带时间戳的备份文件
- 备份文件名格式:
ide.general.xml.backup.YYYYMMDD_HHMMSS - 支持手动恢复原始配置
-
错误预防
- 增加配置文件读写权限检查
- 验证 XML 文件有效性后再修改
- 完善错误提示信息(含恢复指引)
pycharm_augment_sessionid-free.shv1.2.0~/Library/Application Support/JetBrains/<PyCharm版本>/options/ide.general.xml~/Library/Application Support/JetBrains/<PyCharm版本>/options/font.options.xml
- 新增字体设置保护机制
- 优化 XML 操作精确性
- 增强备份功能
- 完善错误预防机制
- 基础 SessionID 修改功能
- macOS 系统适配
- 自动检测 PyCharm 版本
- 修改前请确认:
- 备份重要配置文件
- 关闭所有 JetBrains 产品
- 运行脚本后:
- 检查备份文件完整性
- 验证 SessionID 更新状态
- 重启 PyCharm 生效配置
-
Font Settings Protection
- Added detection mechanism for
font.options.xml - Automatically skips modification process when font configuration files are encountered
- Added detection mechanism for
-
XML Operation Optimization
- Implemented precise node operations using
xmlstarlet - Supports node value updates and automatic creation of missing nodes
- Maintains integrity of original XML file structure
- Implemented precise node operations using
-
Backup Enhancement
- Automatically creates timestamped backup files
- Backup file format:
ide.general.xml.backup.YYYYMMDD_HHMMSS - Supports manual restoration of original configurations
-
Error Prevention
- Added configuration file read/write permission checks
- Validates XML file validity before modification
- Improved error messages (including recovery guidance)
pycharm_augment_sessionid-free.shv1.2.0~/Library/Application Support/JetBrains/<PyCharm Version>/options/ide.general.xml~/Library/Application Support/JetBrains/<PyCharm Version>/options/font.options.xml
- Added font settings protection mechanism
- Optimized XML operation precision
- Enhanced backup functionality
- Improved error prevention mechanisms
- Basic SessionID modification functionality
- macOS system adaptation
- Automatic PyCharm version detection
- Before modification, please confirm:
- Backup important configuration files
- Close all JetBrains products
- After running the script:
- Check backup file integrity
- Verify SessionID update status
- Restart PyCharm to apply configuration