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

Add leetcode-ignore-region to ignore lines. #123

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zhaozhixu
Copy link

Sometimes we may want to write some custom code, maybe for better code-completion support, which should be ignored during submissions. leetcode-ignore-region introduces 2 string variables which marks the begin/end of that region.

Sometimes we may want to write some custom code, maybe for better
code-completion support, which should be ignored during
submissions. `leetcode-ignore-region` introduces 2 string variables
which marks the begin/end of that region.
@zhaozhixu
Copy link
Author

Quote from the README.md:

If you want to have some code before your solution, which may make auto-completion work better but shouldn't been submitted, you can customize leetcode-ignore-region to ignore lines in your code. For example, suppose you have a common.h and some custom definations, and leetcode-ignore-region is set to '("" "// start code"), only code below // start code will be submitted:

#include "common.h"
... your custom definations ...
// start code

class Solution {
    ......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant