Going forward, I'll assume that you're using MonoDevelop for coding and editing text files from within Unity. MonoDevelop is a third-party, cross-platform application for editing text files and compiling code in many languages. Unity is configured, by default, to work with MonoDevelop as the standard editor. This means that MonoDevelop will open automatically when you double-click on a valid script file from the Project panel. However, if you want to change the default editor, you can do this by choosing Edit | Preferences from the application menu, and then choosing the External Tools tab:
Customizing and changing MonoDevelop
Get Mastering Unity 2017 Game Development with C# - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.