Reset modelsim editor to the default one

15,610

Solution 1

i could bypass this problem by typing "edit filename.vhd" without the double quotes in the transcript (that window that looks like console at the bottom of modelsim). however this is not a radical solution.

Solution 2

Follow below steps :

  • Go to properties
  • Click on change in open with
  • Click on look for another app
  • Go to the directory of model sim
  • Select modelsim_ase
  • Select win32aloem
  • Select Vish
  • Click open
  • Click apply

Everything would be normal

Solution 3

  1. Right-click your .v file of interest in file explorer
  2. Open with...
  3. Select ModelSim
  4. Select Always Open With
  5. Let the file open up, then close the window

You should be back to normal now when double-clicking the files in ModelSim.

Solution 4

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).

Solution 5

Instead of opening with modelsim.exe, open with vsim.exe. This will stop the never ending loop of opening Model Sim.

Share:
15,610
kamal
Author by

kamal

Updated on July 23, 2022

Comments

  • kamal
    kamal almost 2 years

    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?