Skip to content

Refactor PowerShell script: use New-ItemProperty and unify script/file naming#4

Open
cto-new[bot] wants to merge 1 commit intomainfrom
task-3
Open

Refactor PowerShell script: use New-ItemProperty and unify script/file naming#4
cto-new[bot] wants to merge 1 commit intomainfrom
task-3

Conversation

@cto-new
Copy link
Copy Markdown
Contributor

@cto-new cto-new bot commented Oct 21, 2025

Summary

This PR refactors the PowerShell script for Windows font DPI scaling: using New-ItemProperty, updating documentation, and renaming for clarity and best practices.

Details

  • Replaces all uses of Set-ItemProperty with New-ItemProperty -PropertyType DWord for registry changes and backups.
  • Renames the script from 'Яёткие шрифты.ps1' to 'Set-DpiScaling.ps1', matching documentation and repo convention.
  • Updates README.md: improves clarity, corrects installation and usage instructions, and aligns with actual script filename.
  • Adds a basic .gitignore for IDE/editor and OS local files.

Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup

…and rename script

Switches all Set-ItemProperty usages to New-ItemProperty -PropertyType DWord for consistency and correctness
when creating registry keys. Renames the main PowerShell script to Set-DpiScaling.ps1 to unify naming.
README was updated to reflect the script name and clarify instructions. Adds a basic .gitignore.

This improves compatibility with strict PowerShell requirements about property creation and avoids
collisions or confusion across platforms. The README is more approachable for users, aiding adoption.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants