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

Vala's for snippet miss type declaration of i #1747

Closed
medeotl opened this issue Jan 22, 2018 · 1 comment
Closed

Vala's for snippet miss type declaration of i #1747

medeotl opened this issue Jan 22, 2018 · 1 comment

Comments

@medeotl
Copy link

medeotl commented Jan 22, 2018

Not sure it is really an issue or a wanted behaviour. Anyway, for snippet doesn't include the "int" type declaration

Current snippet:
for=for (i = 0; i < %cursor%; i++)%block_cursor%

Expected snippet:
for=for (int i = 0; i < %cursor%; i++)%block_cursor%

@kugel-
Copy link
Member

kugel- commented Jan 26, 2018

This is on purpose. The snippets are shared with other languages, not all of which support that syntax. Also, the user may want to use an existing variable i.

You can override the snippets config locally if the syntax doesn't suit you.

@kugel- kugel- closed this as completed Jan 26, 2018
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

No branches or pull requests

2 participants