Blender 2.7x used to have F8 as the key to reload the scripts. As an add-on developer I rely on reloading the scripts a lot and having to press F3 and search for "Reload Script” every time i update the add-on I develop is extremely inconvenient. I tried to add shortkey in the settings keymap section, but it seems that Reload Scripts doesn’t exist in the list of operators that can be attached to shortkeys. Any way I can get my F8 back for this action? And in general, how do I go about adding a shortkey to any other operator that is not listed in the Settings keymap section?
New shortcuts can be added in the preferences Edit > Preferences > Keymap.
With the keymap tab open, navigate to the Window category of shortcuts. Click the Add New button to create a new shortcut. The operator for reloading scripts is
bpy.ops.script.reload() therefore the identifier for the shortcut is
script.reload. Click on the shortcut field and press F8 to set the key binding.
In the default keymap for Blender 2.80 there is no existing key binding on F8 which means you can add the shortcut without any problem.
not the best answer yet,
but you could try with these commands,
from the script-editor or console-window:
import bpy bpy.ops.preferences.addon_refresh() # # OR: # (replace module name !) - first disable ... bpy.ops.preferences.addon_disable(module="space_view3d_align_tools") # ... then re-enable bpy.ops.preferences.addon_enable( module="space_view3d_align_tools" )