Forum Discussion

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

How to set "Auto Indent" in ModelSim source editor ?

Hello,

Does exist an option in modelsim source editor that allows aligning source code, e.g. clicking on "Enter" after "begin" moves the cursor jump on next line and get it aligned with the "begin" ... not with the start of line.

On the image below - the actual behavior of modelsim editor: the cursor jumps at startline (cursor position is indicated by red arrow).

Thanks.

http://www.alteraforum.com/forum/attachment.php?attachmentid=13112&stc=1

3 Replies

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

    If I were you I would set ModelSim up to use an external editor (e.g. Notepad++ on Windows/gedit on Linux). You'll get much better indenting support.

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

    No

    Use a better editor (there are many out there that are free)