Change spacing of snaplines in Visual Studio

后端 未结 5 1116
暗喜
暗喜 2020-12-11 16:22

Is it possible to change the amount of space snaplines put between controls in a WinForms project in Visual Studio?

For example, when I slide a textbox up to another

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-11 16:49

    Obviously there is no option setting. You can however achieve your goal with these two meassures: First: Move the control after the drop with the arrow keys. Second: You could place helper buttons at the left right top or bottom side on your container. Snapline will use these as a reference and if they are spaced 4 pixel your new controls will also be 4 pixel appart. You could also press control with an arrow key to move to the next suggested snapline position. Spacing of down to 1 pixel is possible with this. Finally delete your helper buttons.

    Hope it helps.

提交回复
热议问题