How to Open a File with the DVT SystemVerilog Editor Regardless of Its Extension

Overview

DVT Eclipse is an Integrated Development Environment (IDE) for SystemVerilog, Verilog, VHDL, e Language, and mixed-language projects. When working with files that don't have common extensions like .e, .sv, .vhdl, you may be surprised when DVT opens the file using a simple text editor. This video shows you how to open files with a particular extension using the DVT Editor. Although the movie is about SystemVerilog, it is applicable to all the languages supported by DVT Eclipse: SystemVerilog/Verilog, e Language, and VHDL.

Details

Let's consider a couple of files with random extensions. When double-clicking, they will be opened in their associated editor. For unknown extensions, the default is the text editor.

Opening with the DVT SystemVerilog Editor

To open with the DVT SystemVerilog editor:

  1. Right-click on the file.
  2. Select Open With > Other...
  3. Pick Verilog Language Editor from the list.

The associated editor is remembered when reopening this particular file.

Permanently Associating an Extension with the DVT SystemVerilog Editor

To permanently associate an extension with the DVT SystemVerilog Editor:

  1. Go to Window > Preferences.
  2. Then navigate to General > Content Types.
  3. Locate Verilog Source File.
  4. Click Add and fill *.<desired_extension>.
  5. Then:

  6. Go to General > Editors > File Associations.
  7. On the top panel, click Add and type *.<desired_extension>.
  8. On the bottom panel, select Verilog Language Editor and click Default.

Now all the files with the extension are opened with the DVT SystemVerilog Editor.

Note: DVT automatically associates the files it compiles (blue-bullet files) with the appropriate editor.