I don’t think there is a snap to grid in Defold editor. (edit: just read shift should snap to grid in another post but this doesn’t work).
I’ve been holding out for the preferences/scene tab to work also as my project uses a 16x16 grid but it’s not fixed yet. This would certainly help in the absence of a snap.