Reset modelsim editor to the default one

kamal picture kamal · Jul 11, 2015 · Viewed 12.6k times · Source

I want to reset my editor to the default one in Modelsim but I don't know how.

When I double click on a project it opens in Notepad. I tried to change the value of the editor variable from the "Edit Preferences" tab but it didn't work.

I also tried to change the windows settings to open it with Modelsim.exe and it worked for the first project only, but when I want to open another project it enters a loop where it keeps opening Modelsim again and again. What is the right way to do so?

Answer

JDQ picture JDQ · May 16, 2017

Although the issue seems to be with ModelSim, it really is an issue with Windows. As you noted, you have associated a file type (in this case, .vhd) with a given program, and now you need to undo it in order to get ModelSim to work as it did initially.

The following is the manual method for removing file associations for the .vhd extension in Windows 10:

  1. (Search for and) run regedit command.
  2. In the left sidebar of the regedit GUI, navigate to \Computer\HKEY_CLASSES_ROOT.
  3. Delete the ".vhd" directory.
  4. Navigate to \Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.
  5. Delete the ".vhd" directory.
  6. Navigate to \Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\Roaming\OpenWith\FileExts.
  7. Delete the ".vhd" directory.
  8. You may or may not need to restart ModelSim and/or your computer.

UPDATE

Performing just steps 6 and 7 may fix the issue by itself, so try those first, then proceed with steps 4 and 5, check again if that fixes the issue, and so on.

You will need to repeat the fix every time that you perform Open With on a .vhd file, even if you Open With and then cancel (i.e. do not select an application and do not open said file).