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 AC setting to optionally add For loop variable in Next statement when block-completing For...Next #4347

Open
SmileyFtW opened this issue Aug 31, 2018 · 2 comments
Labels
enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. feature-autocomplete feature-block-completion AC issues specific to the "block completion" handler feature-settings

Comments

@SmileyFtW
Copy link

SmileyFtW commented Aug 31, 2018

When auto-completing For Each/Next have the option to have the each object be included in the closing Next:

For Each thing in things
Next thing.

Similarly for With/End With except it would need to be added as a comment.

With thing
End With 'thing
@retailcoder retailcoder added enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. feature-autocomplete labels Aug 31, 2018
@retailcoder
Copy link
Member

IMO if you need to be that explicit, then you either have too much nesting, or a procedure doing too many things. I can see Next thing as a ...thing (it's part of the language syntax and could conceivably be a personal preference, just like an explicit Step 1 might be), but I wouldn't have Rubberduck add "what" comments, when good comments should say "why".

@SmileyFtW
Copy link
Author

SmileyFtW commented Aug 31, 2018 via email

@retailcoder retailcoder changed the title Autocomplete add options Add AC setting to optionally add For loop variable in Next statement when block-completing For...Next Sep 27, 2018
@retailcoder retailcoder added feature-settings feature-block-completion AC issues specific to the "block completion" handler labels Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. feature-autocomplete feature-block-completion AC issues specific to the "block completion" handler feature-settings
Projects
None yet
Development

No branches or pull requests

2 participants