Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ignore spells in comments #373

Closed
fakhamatia opened this issue Aug 16, 2019 · 4 comments
Closed

Feature Request: Ignore spells in comments #373

fakhamatia opened this issue Aug 16, 2019 · 4 comments

Comments

@fakhamatia
Copy link

It's possible to add an option to ignore spells on comments on code?

@Jason3S
Copy link
Collaborator

Jason3S commented Aug 17, 2019

It is possible to do it with your configuration settings. Please see #116 and #107. Adding the pattern to ignoreRegExpList will do what you want.

@fakhamatia
Copy link
Author

@Jason3S I try this but not working for JavaScript

    "cSpell.languageSettings": [
        {
            "languageId": "javascript",
            "includeRegExpList": [
                "/\\/\\/.*/",
                "/\\/\\*(.*?\\n?)+?\\*\\//g"
            ]
        }
    ]

I really don't understand regex.

@Jason3S
Copy link
Collaborator

Jason3S commented Aug 25, 2019

@fakhamatia you copied an example of how to check ONLY comments.

This should work:

    "cSpell.languageSettings": [
        {
            "languageId": "javascript",
            // ignore, not include
            "ignoreRegExpList": [
                "/\\/\\/.*/",
                "/\\/\\*(.*?\\n?)+?\\*\\//g"
            ]
        }
    ]

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants