In order to change the launched development tool for unity hub when opening a .cs script file you need to go to:
- Edit
- Preferences...
- External Tools
- External Script editor
And change this to your editor of choice, for me that is Rider. Here is a picture of how the dialog looks:

That is all there is to it!