Skip to content

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 {
    ......

@kaiwk
Copy link
Owner

kaiwk commented Mar 13, 2025

Thanks! But i will close the PR, it looks similar to #144

@kaiwk kaiwk closed this Mar 13, 2025
@kaiwk kaiwk reopened this Mar 13, 2025
@kaiwk kaiwk added the enhancement New feature or request label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants