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

snippet can not work in C header file #1476

Closed
cxk99 opened this issue Jan 20, 2018 · 3 comments
Closed

snippet can not work in C header file #1476

cxk99 opened this issue Jan 20, 2018 · 3 comments

Comments

@cxk99
Copy link

cxk99 commented Jan 20, 2018

No description provided.

@sean-mcmanus
Copy link
Collaborator

What do you mean? Our cpptools doesn't implement snippets.

@sean-mcmanus sean-mcmanus added the more info needed The issue report is not actionable in its current state label Jan 20, 2018
@vasa-chi
Copy link

I can help with this one :)
Basically vscode's snippets are language-specific, and .h files can be detected as C++ instead of C.
So snippets for C would not work in .h files, detected as C++. Manually switch detected language, and everything is fine.

@cxk99
Copy link
Author

cxk99 commented Jan 21, 2018

Yes, you are right. Thanks for your help.
I tried, it just work as you said.
By manually switch the language of .h file from C++ to C , my snippet defined in "c.json" works fine.
Thanks for the answer.

@sean-mcmanus sean-mcmanus removed the more info needed The issue report is not actionable in its current state label Jan 22, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants