A simple script created for a user on discord to help improve the workflow with aligning the camera to the viewport and automatically locking the camera.
Added additional features and more UI elements
Open Shader / Material Editor in new window
Toggle Names on and off
View Lock - Camera
Install like any other Blender Add-on
Keymap shortcut: Ctrl + Alt + Numpad 1
additional UI element for toggling the camera lock options
Will align camera to viewport and auto enable camera lock.
Find me on Twitter https://twitter.com/IdoineTutorials
Fine me over Youtube: https://www.youtube.com/channel/UCiy-QcXrvu9hhe4arymNcfw