# Autoformat Bug

**URL:** https://forum.kirupa.com/t/autoformat-bug/225492
**Category:** flash
**Created:** [May 12, 2007, 4:54pm UTC](https://forum.kirupa.com/t/autoformat-bug/225492 "2007-05-12T16:54:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jonhallman](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jonhallman](https://forum.kirupa.com/u/jonhallman)
#### Post date: [May 12, 2007, 4:54pm UTC](https://forum.kirupa.com/t/autoformat-bug/225492/1 "2007-05-12T16:54:45Z")

</div>

I’ve been experiencing a supposed fault with CS3’s autoformatting. It completely ignores my selected option of putting spaces around operators, and when assigning variables a class:

```auto
 var theText = new TextField ();

```

it turns it into

```auto
 var theText=new TextField ;

```

erasing the parenthesis… this is definitely not normal. When I delete the spaces that it creates, then autoformat it, it recreates the two spaces…

I’m very particular about keeping my code very clean and organized, so this is very frustrating.

Is anyone else experiencing this bug?

---

<div class="post-metadata">

### Author: ![brommer](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@brommer](https://forum.kirupa.com/u/brommer)
#### Post date: [May 27, 2008, 5:25am UTC](https://forum.kirupa.com/t/autoformat-bug/225492/2 "2008-05-27T05:25:17Z")

</div>

I was royally screwed by this bug too, but, I found out what causes it (at least I was able to reproduce it on my system).

IF you have only .as files open (no .fla file open in flash - i.e. no Target in your .as window) then this format bug triggers.

Workaround is to have a .fla open (target set) all the time.

I think the autoformat looks for some info in a target .fla.
