Forum Discussion

FICO's avatar
FICO
Community Manager
5 years ago

Auto align (indentation) for code in Xpress Workbench

Hi,

I just started to use Xpress Workbench for optimization modelling. I am just wondering if there is a way to have auto align or format (with correct indentation) for the code in Workbench? Like what you have in Visual Studio (Ctrl + K, Ctrl + F). Googled it but did not find anything. Thanks for the help in advance!

Best Regards,

Yewen

2 Replies

  • FICO's avatar
    FICO
    Community Manager

    Auto-formatting for Mosel is not currently supported in Workbench. It is something we are considering for the future.

    However, it is supported for other standard file types, in particular HTML and Javascript. This can obtained though the menu: Edit -> Code Formatting -> Auto Select Formatter.

    I hope this helps.

  • FICO's avatar
    FICO
    Community Manager

    @John Perks​  Thanks for your reply. I am learning Mosel with Workbench now. So I guess I will have to wait for this function to come. But thanks anyway.