This topic contains 4 replies, has 2 voices, and was last updated by  Eliot Muir 1 year, 4 months ago.

Script editor-formatting


  • Code indentation
    is a pet
    peeve of ...
    100%
    of developers .

    Can a simple “format” code feature be made explicitly available to align the statement begins with their matching ends ?

    There is a very useful trick that you might not aware of that I use all the time. If you select a block of code in the editor and press the tab key then it auto indents everything with 3 spaces. I’ve attached a before and after screenshot.

    Hope it helps!

    Attachments:
    You must be logged in to view attached files.

    (i.e. the feature exists – it’s just not that discoverable)

    1) I am aware of such behavior in many editors, yet I tried to reproduce that indent-a-block-by-tab behavior in the script editor in Windows 7, 64 bit, IE 11 with no success. 🙁

    2) The indent-a-block-by-tab is really a paragraph level edit. I am seeking a feature that would do the whole file at once within the editor.

    Try it within Chrome.

You must be logged in to reply to this topic.