# RobotCode v1.7.0 format issues

**URL:** <https://forum.robotframework.org/t/robotcode-v1-7-0-format-issues/9161>\
**Category:** Tools\
**Created:** [13 August 2025 10:49 UTC](https://forum.robotframework.org/t/robotcode-v1-7-0-format-issues/9161 "2025-08-13T10:49:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin-Xiao\_clgroup](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martin-xiao_clgroup/32/4288_2.png) [@Martin-Xiao\_clgroup](https://forum.robotframework.org/u/Martin-Xiao_clgroup)\
**Post date:** [13 August 2025 10:49 UTC](https://forum.robotframework.org/t/robotcode-v1-7-0-format-issues/9161/1 "2025-08-13T10:49:29Z")

</div>

I have problems getting formatting to work in two instances:

- Mark section, then right klick ‘Format Selection’ - Executing `robotidy` failed: No module named ‘robotidy’

- Using ‘Editor: Format On Save’ - No feedback and nothing happens when saving

I have no issues using ‘Format Document’. Any ideas?

---

<div class="post-metadata">

**Author:** ![VadimPl](https://avatars.discourse-cdn.com/v4/letter/v/3d9bf3/32.png) [@VadimPl](https://forum.robotframework.org/u/VadimPl)\
**Post date:** [17 September 2025 16:35 UTC](https://forum.robotframework.org/t/robotcode-v1-7-0-format-issues/9161/2 "2025-09-17T16:35:00Z")

</div>

Just remove robotidy from your project and update robotframework-pabot and robotframework to the latest ones.

After that in settings.json in VS Code write this:

```json
    "[robotframework]": {
        "editor.defaultFormatter": null,
        "editor.formatOnSave": false
    },
    "emeraldwalk.runonsave": {
        "commands": [
            {
                "match": "\\.robot$",
                "cmd": "poetry run robocop format ${file}",
                "autoShowOutputPanel": "error"
            },
            {
                "match": "\\.resource$",
                "cmd": "poetry run robocop format ${file}",
                "autoShowOutputPanel": "error"
            }
        ]
    }

```

---

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [18 September 2025 07:15 UTC](https://forum.robotframework.org/t/robotcode-v1-7-0-format-issues/9161/3 "2025-09-18T07:15:39Z")

</div>

Oki so the solution is to rely on another extession?

---

<div class="post-metadata">

**Author:** ![VadimPl](https://avatars.discourse-cdn.com/v4/letter/v/3d9bf3/32.png) [@VadimPl](https://forum.robotframework.org/u/VadimPl)\
**Post date:** [18 September 2025 10:51 UTC](https://forum.robotframework.org/t/robotcode-v1-7-0-format-issues/9161/4 "2025-09-18T10:51:44Z")

</div>

You can try to downgrade the libraries: robotframework-robocop to 5.x and robotframework-tidy to 4.x.

The settings.json would be like this:

```json

    "[robotframework]": {
        "editor.defaultFormatter": "d-biehl.robotcode",
        "editor.formatOnSave": true
    }

```
