Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

modelsim text editor tab settings

Is there a way to change the tab settings in the modelsim text editor? I'd like to set them to 3 so they match my settings in all my other editors so files look the same no matter where they're opened.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi, look at Edit menu...> Preferences...> click on a tab named "by something" maybe you will find tabulation parameter.

    OR

    Modify a modelsim.ini

    Or wait for more detailed answers ;-)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I just came across this during a search.

    For reference the actual answer is

    Go to the tools menu and select edit preferences

    Then select "Source windows"

    Then "Document types"

    Then the programming/HDL language you are using (it seems the setting is per-language)

    Then spacing

    Then set the settings to suit your taste/coding standards. If you want it to match what quartus does by default for verilog (I can't comment on VHDL since I don't use it) then you want to set the tab stop to 3 and turn off convert tabs to spaces. I also set the auto indent to 3.
  • IDap0's avatar
    IDap0
    Icon for New Contributor rankNew Contributor

    What I had to do was similar to what is described above but not quite it.

    Go to: tools > edit preferences

    Change to the 'by name' tab

    Expand 'source'

    Look for 'tabs'

    Set the value to the amount of spaces you want your tab to represent.

    Press 'OK'

    Enjoy :)

    (windows, Modelsim starter edition 10.5b)