This script toggles the Snap Vector Tools and Transforms to Pixel Grid setting in Edit » Preferences » General (or Edit » Preferences » Tools, in Photoshop CC 2015 and higher).
To download this script, right-click (Ctrl-click on the Mac) on the appropriate version below, and choose "Save Target As".
Toggle Pixel Grid Snapping
Version: 0.2.1 (August 1, 2016)
Requires: Photoshop CS6, CC, or CC 2014
Enable/Disable Pixel Grid Snapping
Version: 0.2.2 (August 15, 2016)
Requires: Photoshop CC 2015+
Download the script(s), and copy it into your "
Adobe Photoshop ##/Presets/Scripts" folder.
After restarting Photoshop, the script should appear in themenu.
Tip: Did you know that you can use the Ctrl/Cmd+Alt/Opt+Shift+K) to assign keyboard shortcuts to your scripts? You can also record scripts within actions and then assign function keys to the actions.command (
If you use this script and find it useful, please consider supporting this site. Also, if need a custom script developed, contact me with the details and I'd be happy to provide you with a free estimate.