Forum Discussion
RichardT_altera
Super Contributor
6 years agoThere are two methods that I found in which by double-clicking the .vhd file in ModelSim GUI, it will open in ModelSim GUI instead of Notepad++.
1. Change the default editor in Window for .vhd file. Click right the file. Click Properties. Click 'Change' Button beside the 'Opens with: '. Change the editor setting to modelsim.exe.
(since you would like to maintain the editor setting in Window, please refer to the second method.)
2. The other way is to Add Existing File in the project (either in the new or current project). Once done, the .vhd file in Modelsim will be available to open in Modelsim GUI by double-clicking. You only need to do once and all the .vhd file in Modelsim will open in Modelsim GUI.
Do note: If you, later on, try to open the .vhd file by double-clicking the file in Window (for your case in which the default editor is Notepad++), it will cause the .vhd file in Modelsim opens in Notepad++ instead. To avoid changing back and forth, edit the .vhl file in Window through right-clicking the .vhd file and 'Edit with NotePad++'. Meaning you will lose the freedom to double-clicking the .vhd file in Window.
Another alternate way without double-clicking is to put a script in the transcript: edit <.vhd file name> and the .vhd file will open in Modelsim GUI.
Hope it helps.