I have using Visual Studio 2015 and have installed all available updates. When I am typing for/foreach and Tab, I won't get any snippet any more. I have tried the shortcut Ctrl+K, X, then get an empty list for snippets. I have run the repair Visual Studio and tried all suggestions I could find online, but the result is still the same.
VS screen shot
Like you said in your comments, the workaround to this problem is to copy all the Visual C# code snippets located in C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC#\\Snippets\\3082\\Visual C#
inside your Code Snippets folder located in C:\\Users\\<UserName>\\Documents\\Visual Studio 2015\\Code Snippets
. Another solution or option is to use an external tool like Visual Assis t for Visual Studio .
After a whole evening not finding an answer I found it in the most simple way:
Inside C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC#\\Snippets there are two folders: 1033 and 3082. Copy the files and folders from 3082 to 1033.
If you have the two folders try to copy and paste them, it worked like a charm for me and I tried "imports" before with no results.
I found this solution here, I want to honor this guy (elmonopascual) but don't have the reputation yet to do so :) --> https://stackoverflow.com/a/36829804/5761877
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.