# Code indentation in C-script Block

**URL:** <https://forum.plexim.com/t/code-indentation-in-c-script-block/1078>\
**Category:** PLECS\
**Tags:** c-script\
**Created:** [November 26, 2021, 5:42am UTC](https://forum.plexim.com/t/code-indentation-in-c-script-block/1078 "2021-11-26T05:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adeel1](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@adeel1](https://forum.plexim.com/u/adeel1)\
**Post date:** [November 26, 2021, 5:42am UTC](https://forum.plexim.com/t/code-indentation-in-c-script-block/1078/1 "2021-11-26T05:42:43Z")

</div>

How can we indent the blocks of code in one go in c-script as it doesnt automatically do it?

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [December 2, 2021, 6:05pm UTC](https://forum.plexim.com/t/code-indentation-in-c-script-block/1078/2 "2021-12-02T18:05:24Z")

</div>

There is not a mechanism to block-indent text within the C-Script block. At the moment, the C-Script is not so much meant as a code development environment but rather as a means to implement models that cannot be expressed easily (or at all) with block diagrams. Enhancing the C-Script block with more IDE-like functionality is on the development roadmap.

However, when writing C-Scripts myself I either a) copy/paste the code into a separate text editor, make any necessary formatting changes, and bring the modified code back into the PLECS environment or b) make use of external files (see a simple example here: [https://forum.plexim.com/3211/include-paths-in-c-scripts](https://forum.plexim.com/3211/include-paths-in-c-scripts))
