# VS Code Configure Formatter Line Length

**URL:** https://forum.robotframework.org/t/vs-code-configure-formatter-line-length/7637
**Category:** Visual Studio Code(ium)
**Created:** [30 July 2024 14:42 UTC](https://forum.robotframework.org/t/vs-code-configure-formatter-line-length/7637 "2024-07-30T14:42:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Worker\_drone-13593](https://avatars.discourse-cdn.com/v4/letter/w/e480ec/32.png) [@Worker\_drone-13593](https://forum.robotframework.org/u/Worker_drone-13593)
#### Post date: [30 July 2024 14:42 UTC](https://forum.robotframework.org/t/vs-code-configure-formatter-line-length/7637/1 "2024-07-30T14:42:38Z")

</div>

I’m trying to configure the robot framework formatter in Visual Studio Code. I have the Robot Framework Language Server extension installed and set as my default formatter, and the Robot: Code Formatter set to robotidy. I’m specifically trying to modify the length at which the formatter separates a long line into a new line. Using this page, [SplitTooLongLine - Robotidy 4.13.0](https://robotidy.readthedocs.io/en/stable/transformers/SplitTooLongLine.html), I’m able to get it working from the command line. However, it doesn’t work if I use shift + alt + F, which is what I need. It appears that shift + alt + F is using a robot framework formatter, but doesn’t notice the settings in the configuration file I made. For example, I set SplitTooLongLine:split\_on\_every\_arg to False in the pyproject.toml file I made, but although the command-line format command uses that setting, the shift + alt + F formatter doesn’t. Is there a was I can make the shift + alt + F formatter use that setting too, or is this impossible?

---

<div class="post-metadata">

### Author: ![Worker\_drone-13593](https://avatars.discourse-cdn.com/v4/letter/w/e480ec/32.png) [@Worker\_drone-13593](https://forum.robotframework.org/u/Worker_drone-13593)
#### Post date: [31 July 2024 17:35 UTC](https://forum.robotframework.org/t/vs-code-configure-formatter-line-length/7637/2 "2024-07-31T17:35:55Z")

</div>

When I tried it again, running the formatter with shift + alt + F now takes the pyproject.toml configuration into account even though it didn’t before. Not sure what changed, but at least it’s working now.
