Where is snippet explorer located? - visual-studio-2017

I have successfully installed the snippet designer (by Mathew Manela) and had successfully exported my own code snippet once from my VS 2017 by following the instruction from this site:
https://marketplace.visualstudio.com/items?itemName=vs-publisher-2795.SnippetDesigner
However, after I closed the VS2017 and come back and attempted to export another code snippet, I can no longer see the option to export code snippet after I highlighted the code and right clicked on it.
I wonder where has the functionality gone?
Also I no longer see the snippet explorer, which according to the link, it is located under view->other window. I did see it before I closed the vs 2017 application.
The snippet I originally created worked and is still working though, which amazes me.
I wonder what have I done incorrectly? How do I export another snippet?

I think I finally figured out what have I done wrong the hard way.
What I did earlier and probably should not have done was downloading the extension from the link above and clicked on it to install. It downloaded and installed like a champ, no complaint. It even worked for 1 time but then vanished in thin air the next time I got into VS2017. There is no way to find it. Maybe I am not supposed to click on the extension to install it outside of VS2017, but there was no warning or error message, which gave user the false impression that everything was fine.
Now, to fix the issue, I went into VS2017, Tools --> Extension And Updates and pick up the SnippetDesigner from there, re-installed it and closed VS2017 for it to finalize.
Then going back into VS 2017 and everything comes back!
Just posted my experience, hopefully someone else does not have to hit their head against the wall trying to figure out why SnippetDesigner is behaving the way I described above.

Related

CodeLite closes terminal instantly

I'm a beginner in C++ and I started an Udemy course. In that course they recommend using CodeLite as IDE, so I decided to give it a try. In the course, they write a basic program that displays "Hello world!" to show how the IDE works. They compile then execute it, and a terminal window opens with the "Hello world!" message like normal.
In my case, after following the setup process step by step and using the exact same code as them, when I compile and execute the code, my terminal flashes for a split second and then disappears. In their video the terminal remains open but I thought that since they have an older version of CodeLite maybe in the newer one that I have, the terminal is supposed to close by default.
I went online and found people saying that a way of keeping the terminal open is by adding #include and system("pause"); on Windows, but in my case the terminal keeps behaving the same, and CodeLite doesn't report any problems. I've also tried cin.get(); with no success.
Any idea what could be causing this problem?
I had the same problem and I did these steps to solve the problem:
Uninstalled CodeLite.
Installed MinGW correctly.
Then reinstalled CodeLite.
Then did tutorial steps: Click Scan then select MinGW.
After I did these steps, it worked normally.
I had the same problem running Codelite on OpenSuse Leap 15.1. I eventually found a very simple answer. Go to the Settings menu, select Preferences and then Terminal, on the left towards the bottom. Change it to konsole to use the standard terminal, rather than the codelite-terminal.
I know this is an old question, but did not see the answer that worked for me. Debugging (F5) will close the terminal after completion.
However, running/executing (CTRL+F5) will not. Leaves terminal open. At least this is the case for me, and hopefully this helps someone out.
I know this is an old question, but CodeLite has a Project-level setting for "pause when execution ends" which will pause the program before the terminal closes so that you can see outputs and the like.
To turn on just right click on your project, go to settings, and it should be in the center of the general tab.
I went online and found people saying that a way of keeping the terminal open is by adding #include and system("pause");
And this is the wrong way to do it - the desire to leave the window open/closed is not meant to be controlled by your program; but the thing calling it. For example, you break the ability to run it as part of a headless script.
Much better would be to run it in debug and put a break point at the return of main, or to find the configuration option in your IDE that stops it closing the window.
I am not aware why CodeLite would behave like that. If you really added some pause or blocking call and it still closes, it looks like it is not really running the program (e.g. something breaks before that or something is misconfigured).
First, try to open a terminal yourself (e.g. cmd or PowerShell on Windows), and execute your compiled program there -- that way, the terminal will remain open. If that works, then compilation went fine, but something is wrong with CodeLite's configuration, most likely.
Otherwise, as a last resort, since using CodeLite is not strictly required, simply switch to another IDE/toolchain, e.g. Visual Studio (on Windows).
For some reason, after closing and reopening CodeLite, it now works, the terminal remains open when I run it from the IDE. I don't know what solved the problem since I've closed and reopened CodeLite at least 5 times before this without anything happening. Thanks for the help though.
I had the same issue. What I found wrong was that the compiler that I installed was 32bit and I was using the 64bit CodeLite version . Try Installing the 32bit CodeLite version and it should work fine.
It worked for me.
I had this problem also, I tried uninstalling and reinstalling code lite but the problem still occurred.
I went back and checked the Environment Variables in control panel and I had placed the systems variables in "Path" to the incorrect Bin directory.
I corrected the entry, uninstalled and reinstalled code lite again and the problem was resolved.
Hey I also had the same problem, doing the same course! What I did was to relocate my mingw-w64 folder, deleted the earlier path from environment variables and added the new path. I uninstalled CodeLite; not saving the user information. I actually downloaded the 14.0.0(64-bit) instead of the newer version 14.0.1(64 bit) . Then I did the steps that Frank tells you and it worked out for me.
I am completing the same Udemy course and encountered a similar problem of the console closing immediately. I encountered the problem for a workspace with 1.) a long name and 2.) ending with an underscore "_". I reduced the size of the folder name which also involved deleting the trailing underscore. This appears to have solved the problem. I encountered this problem with one of Frank's provided workspaces so I knew it was not a compiler issue.
I had an issue with section 20 of my Udemy course because it had parenthesis in the workspace folder name. "(STL)" at the end. Once I got rid of the special characters, it worked fine.
If pause("system"); or cin or restarting Program and whole PC solutions are not working, then make sure to:
Copy your code.
Create new Project and past your code there.
Make sure the new project is selected before trying to double-click it.
Notes:
You can now delete the old not working project and rename your new project.
I don't know what's the reason of the problem, but I did that and it worked for me.
You need to make sure if it is 64bits CodeLite then you have installed 64bits MinGW. Through the IDE itself, you can re-run the setup wizard
Restarting Codelite worked for me ...

Visual Studio 2013 freezing after completing a build

I have encountered a very strange problem and I haven't seen an answer to this anywhere on this forum or others. Yesterday when I pressed f5 to build my program, it compiled, said "Build successfull" and then VS froze. An .exe was created but when trying to run the file, it say that it's already open in system. Since then, even when I create a new project, the same thing happens. TO open the .exe again, I have to restart the compute and when I try to run it after a restart, nothing happens and it locks up again.
This all happened after I opened an example project that I got from my programming teacher. I suspected that the project might have screwed my settings but I tried reseting my settings and re-installing VS. Neither worked. I also ran ccleaner and removed all VS related folders. I have tried several fixes that I red about on this forum that seemed to be related but none of those have worked either.
When I opened a project that I created on my computer, on another computer, that screwed up VS on that computer as well so now I basically am unable to work anymore. I was logged in on my MS account on VS on both computers but could that really have anything to do with it? I am at a loss here and really need help.
I have sent an email to my teacher about it but I don't know how quickly he'll respond so I thought you guys might be able to help. Since I didn't find a similar issue on the site, I thought this might be a useful topic to solve as well.
Thank you in advance, LethalJam.

Xcode 7 beta 2 continuously crashing

I am developing a C++ project with Xcode.
My Xcode keeps crashing out of nowhere. It does so often that it is nearly impossible to work at all. I have been using Xcode 6 until now. Since it kept crashing, I just thought I would format everything. I did a clean install of Yosemite and then downloaded Xcode 7 beta 2 from the official Apple Developer page. I installed it on my clean system, then pulled my repo and tried to work. Still the same problem.
Here is the log of the crash:
http://pastebin.com/t4gMWa95
I have looked around SO and many answers suggested that this could be related to source control. However, I tried to disable source control from my settings and still it crashes as often as before.
Anyone can give me an idea on what is going on? This is frustrating...!
Hmm the crash is in clang::DiagnosticRenderer::emitDiagnostic which presumably is redering errors and warnings. Could there be something odd about your warnings? Or something that is echoed in warnings classnames, scource file names, paths to source files? Does it happen when there is so little code as to have no or few diagnostics? But first - make a new XCode project and add your source to that, see if the new one works better.
Go to Users>[UserName]>Library>Preferences
Search for "xcode" inside the "Preferences" folder
Move all the resulting files (I had 6 files when I searched) to Desktop
Restart your Mac
Now open Xcode and see if its crashing
These steps solved my problem. Hope this helps...

Xcode 6 stopped cleaning project before building

I have a strange issue on my Xcode 6. Today I worked at home and when finished a part of C++ code, I committed it on my personal git remote server.
Okay then I came to work, successfully checked it out and then built it. The first build was as usual, it took a few minutes to compile, but other one I made after correcting a code, simply have been done in a few milliseconds, like Xcode took a previously built version and use it this time.
And that was it! I notice I've got the previous functionality, like I use the first version of code, which I checked out after start my work computer.
So the question is - how to force Xcode 6 automatically clean the previous builds before compiling?
P.S. I also noticed that breakpoints changed their color from blue to gray. What have I done wrong here?
Resolved.
Looks like the matter in file's owner permissions. Trying to do sudo chown -R boss:staff /Users/boss/Codes/ made the issue gone.

Eclipse not building properly

Okay so basically I'm working on recursion. And I recently switched from a mac to a PC, so I'm now using eclipse instead of XCode for programming c++. now this has happened to me a couple times, and I still have no idea why its doing it. When this happens I do not get an error code, I've searched far and wide for this solution but haven't found one yet, so i'm hoping you guys could help. So everything was going great (almost finished), but i realized a bug, so I fix it, then I save it, then I build it, run it, then it doesn't build properly (i'm assuming), like it didn't build my new code, it just rebuilt my old code and ran that, im using MinGW, I've also tried to import my old code via copy and paste, but it did the same thing, please help.
*let me know if I left anything out that might be needed to know
**update on my project file it does have a error sign on it, but there isn't one in my code
***update update I looked through the errors and found that it doesnt have permission to open output file "recursive.exe" (my project name)
OK solution: run eclipse as admin