29

How do I set up snap to grid in Inkscape? I have a grid enabled but snapping doesn't seem to be working. This answer pointed me in the right direction but still didn't solve my problem.

I am sharing what I learned about snapping to grids in my answer below.

  • great question and self-answer writeup! – dreftymac May 11 '17 at 23:39
33

There are several locations in the settings that affect snapping to a grid.

  1. View Page Grid
  2. Document Properties
  3. Snap Controls Bar
  4. Preferences

We will look at each of these. The images may look different for different operating systems, but the general settings should still be the same.

View Page Grid

This does not directly affect snapping to the grid, but if you can't see the grid at all, then make sure that the menu item View > Page Grid is checked. The shortcut key is #.

Document Properties

To get here, go to File > Document Properties... and click on the Grid tab. You can create a new grid by pressing New if necessary. Make sure that it is enabled and that you are snapping to visible grid lines for now.

enter image description here

The next tab over in Document Properties is Snap. Choose Always Snap in the Snap to Grids section for now. You can always refine this setting later.

enter image description here

Snap Controls Bar

If you don't see this toolbar try going to View > Show/Hide > Snap Controls Bar. It looks something like this, though it may be a vertical bar in your setup.

enter image description here

For starters try making the same settings as shown in the image. Depending on what you want to snap, these settings could very well be why it isn't working for you. Read more about them if you need to.

Preferences

To get here got to Edit > Preferences > Behavior > Snapping. If you need to you can adjust these, but if not then just use the settings shown in the image.

enter image description here


Source

  • 6
    i followed this but snapping still does not work in inkscape! – guesty Dec 15 '15 at 18:43
  • 3
    You have to press alt-when moving something to snap it! SNAP! – Roel Apr 13 '17 at 12:11
  • I am using smooth nodes and so had to also enable the 11th button on the Snap Controls Bar before snapping started working. – februaryInk Apr 15 '17 at 20:54
11

This took me forever to figure out as well. It's hardly intuitive. This bug report is what led me to the answer: https://bugs.launchpad.net/inkscape/+bug/1422296

The key is to make sure you have the right combination of 'snap to...' icons selected on the right side of the UI:

To quote the above URL:

    - "Enable snapping", the topmost button
    - "Snap nodes, paths, and handles", the 7th button
    - "Snap cusp nodes", the 10th button
    - "Snap to grids", and "Snap to guides", which are the lowest two 

I didn't have the 10th button active in my case. Activating that button got the snapping-to-grid working for me.

  • Was struggling with this issue today. I think I didn't have the 7th and 10th buttons activated. – user89 Apr 14 '18 at 2:28
3
  1. Set up your grid via File → Document Properties → Grid and File → Document Properties → Snap as Suragch suggested. Or go to Inkscape preferences → Snapping and Inkscape preferences → Grid to affect all documents you edit. On my Inkscape, the grid spacing was set to 1px which is not going to be helpful, so increase it to something sensible.
  2. When you want to snap something, hold down the Alt key when dragging the mouse.
  • 1
    alt constrains dragging to 90 angles but doesn't seem to force a snap to grid. – DA01 Aug 27 '16 at 3:30
2

Quick Answer (TL;DR)

In addition to the excellent answers already given, here are some addons:

  • use snap-to bounding box [FN000]
  • place the mouse pointer closest to the edge you want to use as the snap target [FN001]
  • use snap-to-grid with a very large pixel size to verify snap is working [FN002]

Detailed Answer

Context

  • Inkscape 0.91
  • using the snap-to feature reliably

Problem

  • Scenario: UserCelibra wants to use snap-to in inkscape, but it does not appear to be working reliably.

Solution

Use bounding-box snap mode to make the edges of the containing box act as the snap targets

enter image description here

Place the mouse pointer closest to the edge to serve as the snap target

enter image description here

Use snap-to-grid and set the grid lines to a large pixel size

enter image description here

See also

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.