Press Ctrl (Mac: Command) ; (Semicolon) to show/hide Guides. Press Ctrl (Mac: Command) ' (Apostrophe) to show/hide Grids.
How do I turn on gridlines in Photoshop?
Choose Edit > Preferences > Guides & Grid.
How do I turn off the snapping grid in Photoshop?
Hold Ctrl (Windows) or Command (macOS) after you start to drag to prevent Photoshop from snapping the layer to other objects.