I've wanted to ask a few questions here before I post a bug report. (Also the lines between VSCode and Extension are blurred for me as I never know which to report the problem to)
Question #1: Is there a way for me to force breadcrumbs to update? Sometimes on a new file it is unable to find the C++ symbols contained in that file. Also if you were to change the location of the code by say tabbing it to the bottom the of page, VSCode breadcrumbs would send you to the old location. GIFS below:
Unable to find some C++ symbols:
Sending to old location: (I saved the document after moving the location which didn't help breadcrumbs)
Question #2: Do you have to enable symbol highlighting for breadcrumbs? What I am referring to is when I focus over a class it doesn't highlight the whole class just where it was declared.
Whats happening:
What I was expecting to happen:
Thank you for reading.
These are problems with the c++ tool's extensions implementation of the breadcrumbs feature. Please try filing issues against that extension.
Looks like this issue already tracks some of what you describe
Related
Currently VS Code will only highlight errors when the file is saved. This can get bothersome, as it isn't immediately apparent sometimes if you've mistyped something or are using something wrong etc.
Is there a way to make VS Code automatically show syntax/logical errors i.e red/green squiggles underneath code?
I am working with python but I have the same problem.
As shown here: "Linting runs automatically when you save a file."
Therefore, what I did to automatically lint, is enable Auto Save. With this configuration you can achieve linting almost in real time.
I guess that for C++ will work similar. Hope it helps.
Does anyone know of a plugin where I can get the breadcrumbs of a file I am working on.
Lets say I am working on app/controllers/admin/crs/abc, So I can see this info at the top or start of the window.
I am using ember and due to pod structure its hard to know which file I am working as all of them have different folders but same names.
Simply edit your user preferences and add
"show_full_path": true
and the full path of the file will appear in Sublime's titlebar when the file is active.
Compare with the setting (OS X):
to without it:
I know this is an old question but still, I think this is an interesting Package that not many people know of.
On top of #mattdmo answer, you might even want to check the breadcrumbs for a nested structure (pretty much like you'd do in VS Code): just install Breadcrumbs for Sublime Text. Not as cool, but it works ok.
How do I delete a resource symbol in Visual Studio 2010 (Visual C++) if I delete a menu item and want to delete the resource symbol associated with that menu item...
The IDE says the symbol is still in use in the Resource Symbols dialog, even though I have deleted the menu item.
I made a video showing the behavior of visual studio which says the resource
symbol is still "in use" even though from what I can see it is not in use.
https://www.youtube.com/watch?v=O9RB5Q2RuF4
It is not mandatory that you watch the video, I made it simply because it proves that I am not just imagining things or describing the problem incorrectly. The only real way to prove peculiar IDE behaviour is to show a video of the editor making its mistakes or showing its problems.
A recent edit of the question makes this answer irrelevant. However I'm not going to chase a changing question.
Edit → Resource Symbols…
Disclaimer: I have not watched the linked to video. Please do consider that some people may have low bandwidth connections. Also consider google-ability of what you post. A link to offsite information is not googleable. Post all relevant information here, and as text (in a few cases enlightening small screenshots can be good).
Edit the header file manually and delete the line containing the ID.
I found it best to do this in another editor (i.e. Notepad++). When you switch back to Visual Studio it will say "File edited by another program", just click reload. It will give an error if you deleted an ID that's actually in use. In that case undo your changes in the other editor and re-save. Then you may have to reopen visual studio to get it to reload the files.
It's not the ideal solution (I found this question because I was searching for a better one) but it at least resolves the problem.
Okay,
I have this slightly annoying problem with the code assistance of Eclipse CDT.
Whenever you hover the mouse over a function, a window pops up to show you the comment of that function. That is good.
Now, unfortunately, when the source file for that function is also available, it shows that instead of the comment. But I really don't want to see the source of the function, I always want to see the comment in the header. Who thought it would be a good idea to show source code when you just want a short description of what a function does? Not especially well suited for C++, is it? ;)
And another issue:
This window that pops up when you hover with mouse over a function... I really don't want to hover my mouse everytime I want to have that window.
I think the solution to my problems would be if there was a way to always show the header comment of a function as soon as the text cursor is on that function. Maybe in a permanent window that I can place wherever I want. Is there a way to achieve this? Maybe a plugin?
And if there is no way to do that: What is the shortcut for opening that window and how can I force it to show the header comment instead of the source code?
From this thread, it looks like the hover issue is intentional design. It probably results from eclipse originally being a Java IDE (where function definition equals declaration in source code).
The only workaround seems to be to exclude the source code by compiling it away into a *.lib without debug information and including it via lib and headers. Which is kind of impossible when your project is the one that generates the library in the first place.
What you could do is to make Documentation in the sense of the property page avaliable. That seems somewhat complicated from what I found in the eclipse forums:
The 'Documentation Hover' type listed in the preference page only
displays help content which has been contributed to the
org.eclipse.cdt.ui.CHelpProvider extension point.
I have a Managed C++ WinForm that suddenly stopped showing in the VS 2005 designer. The error it shows is
Could not find type 'int'. Please
make sure that the assembly that
contains this type is referenced. If
this type is a part of your
development project, make sure that
the project has been successfully
built.
I don't even know where to start with this one. Does the designer only access the InitializeComponent(void) method when rendering the form? So my question is: where do you start troubleshooting designer errors?
EDIT: I forgot to mention that this code builds and runs perfectly. It only shows an error in the windows forms designer.
This is troubleshooting for C# but I'd assume a couple of the points mentioned here would help.
What's the state of play with "Visual Inheritance"
This is usually caused by a syntax error somewhere in the code that causes the designer to be unable to run the form to render it. The best method for this is ofent sadly just reading the code looking for the problem extra brace, missing string etc. The good news is that it is most likely easy to find since you know that it preceeds the INT in the error message.
Some possibilities:
* I cause this usually by accidentally hitting the keybaord and putting some extra characters at the top of a file
* Extra braces that make the class uncompilable - missing quotes, semicolons
* Something typed at the top that messes up a common include/using statement
Diagnostics
* Sometimes you can find this by dogin a build and seeing what lione is flagged with an error and then looking around it.
* More often then not I have to just open the source file and scan through it looking for the problem.