# How to configure my favorite editor in ModelSim?

I want to set up my favorite editor in ModelSim. The default behavior is that ModelSim uses its own internal editor, which I don't like.

I've Googled and I've searched the ModelSim User Manual. I figured out that:

• If you set the EDITOR environment variable, the TCL edit command will use your editor.
• You can configure the project to execute a custom command when you double-click a file (I've set this custom command to edit %f which opens the file with my editor.

Still, when I double-click a compile error, the default (built-in) editor is opened. This is not what I want.

Is there a global setting so that the internal editor is not used, but my own editor is?

-
Windows or Linux? –  Brian Carlton Sep 8 '11 at 17:20
@Brian I did this on Linux. –  Philippe Sep 9 '11 at 7:21
Have you asked Mentor? –  Martin Thompson May 28 '12 at 14:22
@AndrewKohlsmith: Lots of people use ModelSim for VHDL and Verilog work. –  Brian Carlton Oct 16 '12 at 21:35
@AndrewKohlsmith: "It has nothing to do with electronics or engineering." - That would be true if ModelSim were accounting software or something that is actually unrelated to electronics or engineering. –  Chris Laplante Dec 15 '12 at 17:28

proc external_editor {filename linenumber} {
exec "youreditor" $linenumber$filename &   # edit as required