Subject: Applying rooCode rules to specific file types #3442
Replies: 1 comment 4 replies
-
Hello @sgmckay25! I'm Dosu, and I'm here to help you with bugs, answer questions, and support your journey as a contributor. While you wait for a human maintainer, feel free to ask anything! Yes, Roo Code allows you to restrict rules to specific file types or set patterns/extensions for each rule using custom modes. You can limit file access to specific file types or patterns by using file restrictions in the custom mode configuration. For example, you can restrict editing to only ["edit", {
"fileRegex": "\\.md$",
"description": "Markdown files only"
}] Keep in mind the following important rules when creating patterns:
You can also use various pattern examples and building blocks provided in the Roo Code documentation to create more complex rules. For instance, to match JavaScript files but exclude test files, you can use a pattern like To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm currently testing rooCode and have created several rules that work as expected. However, I'd like these rules to apply only to specific file types, such as
01-js.md
,02-php.md
,03-scss.md
, etc.Right now, all rules are applied regardless of the file type, which is not the intended behavior. I've searched through the documentation and existing issues but haven't found a clear solution for this.
Is there a way to restrict rules to specific file types or set patterns/extensions for each rule?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions