-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Regex Ignore #27
Comments
I also would like to have this feature to disable spell-checking for CSS colors like |
With 0.14.0, it is now possible to define RegExp to be ignored: "cSpell.ignoreRegExpList": [
"0x[0-9A-F]+",
"#[0-9A-F]+",
"file:\\S+"
] or you can add as a comment in the source file: // cSpell:ignoreRegExp 0x[0-9A-F]+
// cSpell:ignoreRegExp #[0-9A-F]+
// cSpell:ignoreRegExp file:\S+
// cSpell:ignoreRegExp https?:\S+ |
If you want enhancements to how this works, please open a new issue and refer to this one. |
Really helpful! Thanks 😄 |
Is it possible to ignore anything starting with I've tried a number of different regex options with no luck, even tried getting help on StackOverflow: https://stackoverflow.com/q/49386209/99401 |
@jreljac,
The |
Thanks Jason...
That works...unless the line is indented, then it does not work.
$fullpath = $path . '/test/';
shows that fullpath is spelled wrong.
If I add what you recommended to my user settings file it works but if I
have
$fullpath = $path . '/test/'; (with a leading tab) it sill shows fullpath
as spelled wrong.
$fullpath = $path . '/test/'; (with one leading space) does the same.
I'm guessing it looks at the entire line...?
Jason
…On Tue, Mar 20, 2018 at 12:02 PM, Jason Dent ***@***.***> wrote:
I answered it on stackoverflow:
"cSpell.ignoreRegExpList": [
"^\\$.+"
]
The .+ at the end of the string is necessary to match till the end of the
line.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB9yH6bH_mU9VPRGpIOTe6mZCbhXTvT3ks5tgSf6gaJpZM4KjuDY>
.
|
I misunderstood what you were looking for. You want to ignore all words starting with $.
|
Jason,
Perfect! Thanks for the help on this.
J-
…On Wed, Mar 21, 2018 at 1:29 PM, Jason Dent ***@***.***> wrote:
I misunderstood what you were looking for. You want to ignore all words
starting with $.
"cSpell.ignoreRegExpList": [
"\\$\\w+"
]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB9yHyFkEXzGkQHYACdrQ67YXC6W6sgSks5tgo4MgaJpZM4KjuDY>
.
|
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. |
Is it possible to add words to our
settings.json
that are regex and it ignores words that match it?For example
new Guid("........-....-....-....-...........")
or any regex that is desired.So settings something like
The text was updated successfully, but these errors were encountered: