# Tab width in gateway script editor

**URL:** <https://forum.inductiveautomation.com/t/tab-width-in-gateway-script-editor/98131>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [November 4, 2024, 4:22pm UTC](https://forum.inductiveautomation.com/t/tab-width-in-gateway-script-editor/98131 "2024-11-04T16:22:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Marsh](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ryan\_Marsh](https://forum.inductiveautomation.com/u/Ryan_Marsh)\
**Post date:** [November 4, 2024, 4:22pm UTC](https://forum.inductiveautomation.com/t/tab-width-in-gateway-script-editor/98131/1 "2024-11-04T16:22:54Z")

</div>

I recently updating to 8.1.44 and I noticed that tabs in the gateway script editor are now 3 spaces wide instead of 4. Is there a way to change this back to 4?

I know this doesn't technically affect the functionality of the code, and I can always change the tabs to spaces in an external editor, but I'd rather not have to take the extra steps if I don't have to.

 ![Gateway Event Scripts](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/a/cadfa21d4733c42f8680a09ea5aa80dc0f3db412.jpeg)

Note: this also affects the session events script editor, but not the project library, component script configuration, component event configuration script editors.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 4, 2024, 4:27pm UTC](https://forum.inductiveautomation.com/t/tab-width-in-gateway-script-editor/98131/2 "2024-11-04T16:27:54Z")

</div>

Did you happen to zoom in or out (ctrl + mousewheel) in this particular editor? Are you on a 'fractional' scaling display device (i.e is your monitor set to 125% or 150% GUI scaling)?

---

<div class="post-metadata">

**Author:** ![Ryan\_Marsh](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ryan\_Marsh](https://forum.inductiveautomation.com/u/Ryan_Marsh)\
**Post date:** [November 5, 2024, 6:01pm UTC](https://forum.inductiveautomation.com/t/tab-width-in-gateway-script-editor/98131/3 "2024-11-05T18:01:38Z")

</div>

It looks like I altered the zoom on the editor without realizing it. After fiddling with it, I was able to get the indent to 4 spaces again. Thank you!
