Show Pixel ruler in Visual Studio 2013

3

1

I use Visual Studio 2013 and want to use a Pixel ruler in the designer.

I saw some screenshots on the internet but don't know how to display the ruler or if I have to install a plugin or something.

juergen d

Posted 2015-02-20T09:39:33.150

Reputation: 364

As an aside, I use jRuler (it's free). Simply because I use the ruler for web design as well. Unless you need a ruler to to always be present (and on simultanious X and Y axis) then this may suffice. – Dave – 2015-02-20T13:15:01.523

@Dave I think the OP is using Windows Forms in this case. – jrh – 2018-01-16T15:04:44.310

Answers

3

In Visual Studio 2013:

  • Select Tools > Options
  • Window Form Designer > General
  • Set "Layout Mode" to "SnapToGrid"
  • Set "Show Grid" to "True" (by default this is True)
  • Click OK, close and reopen the form in the designer

Hope this helps

AlainD

Posted 2015-02-20T09:39:33.150

Reputation: 3 150

Tried it, but I do not see any ruler. – juergen d – 2015-03-22T17:35:17.703

1Did you see the grid? I don't recall anything like a traditional ruler you might see in Word in any version of Visual Studio I've used. The grid serves as a ruler for most purposes, but you may be looking for something else. – AlainD – 2015-03-22T17:41:22.637

1No, I see no grid either although I set Show Grid to true – juergen d – 2015-03-22T17:43:04.050

The grid is off by default in VS 2013 and after doing the above the grid should be displayed. Don't forget to close the form and re-open (or restart Visual Studio itself). – AlainD – 2015-03-22T17:47:53.077

Even restarting didn't help. No grid. – juergen d – 2015-03-22T18:09:16.803

@juergend The "grid" the answer is referring to is not shown all the time, it's only shown when you move a control near another one; I wouldn't even really call it a grid, I'd call it "alignment lines" or something. – jrh – 2018-01-16T15:03:59.543