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

Custom/const variable declaration format #350

Open
nitnelave opened this issue Dec 20, 2022 · 4 comments
Open

Custom/const variable declaration format #350

nitnelave opened this issue Dec 20, 2022 · 4 comments
Assignees
Labels

Comments

@nitnelave
Copy link

Great plugin!

When refactoring a variable in C++, the result looks like:
auto var = expression;

It would be nice to be able to configure that (maybe even another command, or a command parameter?) to have
const auto var = expression;

Same in Rust with let and let mut, TS with let and const, etc.

@pranavrao145
Copy link
Collaborator

@nitnelave thanks for opening another issue! I will mark this as a feature request for now, and we can look into it in the future!

@teddylear
Copy link
Collaborator

@nitnelave I've merged in a change to edit this globally. I'm going to keep this open for now so you can pass in a custom extract var statement to a separate keybinding if desired instead of globally in the plugin, but hopefully this helps you for now. Please let me know if you have any issues.

@nitnelave
Copy link
Author

I've tested it a little bit, it seems to work fine! Thanks :)

@teddylear
Copy link
Collaborator

@nitnelave Thanks for reviewing ! Like I said above, I'll leave this open while implementing that other functionality by adding this config per call and not just global.

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

No branches or pull requests

3 participants