# Short-cut for "cursor to selected"

Can I program a direct short-cut (keyboard) for the functions "cursor to selected" and "selection to cursor"? Couldn't find them under the User Preference/Input tab. I know they're under Shift+S, but then I still have to select from the pull-down menu, and that is too cumbersome.

• Perhaps you already know this, but for pulldowns it often helps to use the menu accelerators. You can use the number row to select entries in order (1 for the top entry, 2 for the second, 3 for the third, etc.). Or you can use the letter key corresponding to the underlined letter in the entry you want. For example both Shift S 2 and Shift S T will snap the selection to the cursor.
– gandalf3
Dec 16 '15 at 11:45
• @gandalf3♦ I answered similar question some time ago and presented the same solution (blender.stackexchange.com/questions/36894/…). The answer got 'duplicate' status and was closed, but I think it shouldn't be (cause it shows different solution from the one that NᴏᴠɪᴄᴇIɴDɪsɢᴜɪsᴇ aka HATMAN presented). Could you please reopen it? Dec 16 '15 at 20:47

Hover your mouse over 'cursor to selected', and then click on it with the RMB . You will see an option to either add or change the keyboard shortcut.

Hover your mouse over the box that appears, (it should tell you to press a key), and then press the desired shortcut one key at a time while still holding them down to create your new shortcut.

Make sure to save your new shortcut as defaults by going to user preferences by pressing Ctrl+Alt+U, and then save user settings.

In 2.8 and later, you can add a new shortcut to Quick Favorites which will give you a small menu with the keyboard shortcut Q

Simply RMB and select Add to Quick Favorites from the choices that appear.

Make a user-defined keyboard shortcut.

I sacrifice the default shortcut for To Sphere (shift+alt+S) and made it bpy.ops.view3d.snap_cursor_to_selected() instead.