# Valid syntax for Robocop config in VSCode extension settings

**URL:** https://forum.robotframework.org/t/valid-syntax-for-robocop-config-in-vscode-extension-settings/6313
**Category:** Visual Studio Code(ium)
**Created:** [7 October 2023 10:25 UTC](https://forum.robotframework.org/t/valid-syntax-for-robocop-config-in-vscode-extension-settings/6313 "2023-10-07T10:25:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![robrtx](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/robrtx/32/3027_2.png) [@robrtx](https://forum.robotframework.org/u/robrtx)
#### Post date: [7 October 2023 10:25 UTC](https://forum.robotframework.org/t/valid-syntax-for-robocop-config-in-vscode-extension-settings/6313/1 "2023-10-07T10:25:24Z")

</div>

Hi fellow robots,

I use VSCode editor with Robot Code extension and I would like to add a new configuration into VSCode extension settings where Robocop would highlight all occurrences of a custom marker in the comments (for example: “bug”).

I am currently strugling to understand what is a valid syntax for this configuration.  
I already tried various combinations, but nothing worked.

Here is a screenshot of the [Robot Code](https://marketplace.visualstudio.com/items?itemName=d-biehl.robotcode) extension settings section for Robocop configurations:  
 ![Robocop config in VSCode](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/1/12912be88ccfb396e316f7d6bd03b1005d8e99f9.jpeg)

The Robocop rule I try to change is called “[todo-in-comment](https://robocop.readthedocs.io/en/3.2.1/rules.html#todo-in-comment)” and when I execute the mentioned configuration example from CLI it will work in CLI, but it will not affect the marker highlighting in VSCode editor.

---

<div class="post-metadata">

### Author: ![daniel](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/daniel/32/1492_2.png) [@daniel](https://forum.robotframework.org/u/daniel)
#### Post date: [7 October 2023 22:06 UTC](https://forum.robotframework.org/t/valid-syntax-for-robocop-config-in-vscode-extension-settings/6313/3 "2023-10-07T22:06:28Z")

</div>

You found a mistake!!! Yeah!!!

I have published the new version 0.61.1 of RobotCode in which it should be fixed.  
Please try it out and give me feedback.

Btw. The robocop settings can also be created as a file. Then they will be displayed when you run robocop on the command line. See here: [Configuration - Robocop 4.1.1 documentation](https://robocop.readthedocs.io/en/stable/configuration.html#loading-configuration-from-file)

---

<div class="post-metadata">

### Author: ![robrtx](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/robrtx/32/3027_2.png) [@robrtx](https://forum.robotframework.org/u/robrtx)
#### Post date: [7 October 2023 23:05 UTC](https://forum.robotframework.org/t/valid-syntax-for-robocop-config-in-vscode-extension-settings/6313/4 "2023-10-07T23:05:32Z")

</div>

Now it works as expected 🙃  
Thank you very much!

![Screenshot 2023-10-08 010145](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/1/19e5e9fbd20a826d9209963989c34734122de568.jpeg)
