Title: Bug Fix
Last modified: August 22, 2016

---

# Bug Fix

 *  [nvg](https://wordpress.org/support/users/nvg/)
 * (@nvg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bug-fix-8/)
 * Love this plugin. Just a have a bug fix suggestion:
 * Am hoping you can fix this on the next update:
    For those of us who like to format
   css in a nested fashion like this:
 *     ```
       .foo {
         width:100px;
         height:100px;
       }
       ```
   
 * there is an annoyance where we constantly have to reformat the spacing:
    After
   you type:
 *     ```
       .foo {
         width:100px;
       ```
   
 * and hitting return, the cursor is placed two spaces ahead of where it should 
   be.
    Then after hitting backspace/delete, the cursor is placed at the beginning
   of the line. After hitting space twice to get the cursor to where it should be,
   and after typing:
 *     ```
       height:100px;
       ```
   
 * and hitting return, the cursor is placed again two spaces ahead of where it should
   be.
    Then after hitting backspace/delete again, the cursor is placed at the beginning
   of the line again, but when you type:
 *     ```
       }
       ```
   
 * the curly brace is placed two spaces ahead again:
 *     ```
       .foo {
         width:100px;
         height:100px;
         }
       ```
   
 * So finally you have to hit backspace/delete again.
 * So it ends up being a lot of extra work to get it formatted this way. I know 
   you can reformat it all when you’re completely finished, but you end up with 
   a mess while you’re actually editing the code…
 * Thanks for all your hard work on this!
 * [https://wordpress.org/plugins/advanced-code-editor/](https://wordpress.org/plugins/advanced-code-editor/)

The topic ‘Bug Fix’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-code-editor_f4f3f4.svg)
 * [Advanced Code Editor](https://wordpress.org/plugins/advanced-code-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-code-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-code-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-code-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-code-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-code-editor/reviews/)

## Tags

 * [bug fix](https://wordpress.org/support/topic-tag/bug-fix/)

 * 0 replies
 * 1 participant
 * Last reply from: [nvg](https://wordpress.org/support/users/nvg/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/bug-fix-8/)
 * Status: not resolved