# Snap on function for node red?

**URL:** <https://discourse.nodered.org/t/snap-on-function-for-node-red/46209>\
**Category:** General\
**Created:** [25 May 2021 11:31 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209 "2021-05-25T11:31:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [25 May 2021 11:31 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/1 "2021-05-25T11:31:47Z")

</div>

Hi Folks,

I believe there is a snap on function for connecting nodes but I am totally clueless as to how to do it?

Does anyone know how to have nodes snap on connect together rather than spending ages dragging lines from one node to the other?

Thank you,

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [25 May 2021 11:36 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/2 "2021-05-25T11:36:08Z")

</div>

> [@edwardr](#):
>
> I believe there is a snap on function for connecting nodes

Sorry - no  
You can drop a new node onto the line connecting two existing nodes and it will "snap" into place so that saves you some time 🙂

---

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [25 May 2021 11:39 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/3 "2021-05-25T11:39:51Z")

</div>

Ah bugger, I honestly thought there was a way! Thanks anyhow

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [25 May 2021 11:43 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/4 "2021-05-25T11:43:53Z")

</div>

You could start off with one long line between and inject and a debug and then drop all the others onto it 🙂

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/5/956bc51c611e4739f349c8b374ad5ae48ea8dd2a.png)

one at a time 🙂

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4be474f813cf815c64ea898ecf6db04b371920fe.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 May 2021 11:50 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/5 "2021-05-25T11:50:30Z")

</div>

You can speed up flow writing by holding control when you use the quick input...

![fTSQcLo4Py](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/c/6c39f776a945744eb41baa1844872609e86a2028.gif)

- hold ctrl when you click in editor
- use keyboard to filter/select the desired node
- hold ctrl when you press enter

---

<div class="post-metadata">

**Author:** ![Simon01011](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@Simon01011](https://discourse.nodered.org/u/Simon01011)\
**Post date:** [25 May 2021 11:52 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/6 "2021-05-25T11:52:29Z")

</div>

Awesome! I didn't know that, it's great! 👍

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 May 2021 12:09 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/7 "2021-05-25T12:09:54Z")

</div>

To add to what @Steve-Mcl said, if you press and hold Ctrl you can click on node ports to wiring them together with out having to drag.

[https://nodered.org/docs/user-guide/editor/workspace/wires](https://nodered.org/docs/user-guide/editor/workspace/wires)

---

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [25 May 2021 13:14 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/8 "2021-05-25T13:14:42Z")

</div>

is there also a quick way to disable enable nodes as well?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 May 2021 13:16 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/9 "2021-05-25T13:16:01Z")

</div>

If you open the keyboard shortcut dialog (from the main menu, or hit `?`) you can assign your own keyboard shortcuts to `Disable Selected Nodes` and `Enable Selected Nodes`

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 May 2021 13:56 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/10 "2021-05-25T13:56:32Z")

</div>

> [@edwardr](#):
>
> is there also a quick way to disable enable nodes

Additional to what Nick said, this (and many other operations) can be operated by using ctrl + shift + p

![fV50qNYy8Z](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/4/f41ccca8fe991bf54816cad3c12e1ed3002bc99b.gif)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 July 2021 13:57 UTC](https://discourse.nodered.org/t/snap-on-function-for-node-red/46209/11 "2021-07-24T13:57:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
