Is it possible to get Eclipse Mars 4.5.0 IDE for C/C++ to show the filenames of the functions in the call hierarchy. For example in the below view I would like to see the name of the file that the "IncrementCount" and "DecrementCount" is in.
Reason is most functions are called from numerous files and I would like to see them listed here instead of clicking each function to open the files.
There is currently no option to get the Call Hierarchy view to display filenames for results.
As a workaround, you could consider using "Find References" instead (right-click -> References -> Workspace or Ctrl+Shift+G). This is like one level of the Call Hierarchy (i.e. it shows you the callers, but not the callers of the callers), and the callers are grouped by file.
That said, I don't see a reason the Call Hierarchy view shouldn't show filenames. Consider filing an issue asking for this to be added.
If you bring up the context menu from the white down arrow at the top left of the Call Hierarchy tab, there is an option to display filenames. This was seen in Eclipse 4.5.1 IDE for C/C++, but I would think it's likely in 4.5.0 as well.
Related
I generally have a bunch of custom keybinds for WebStorm, but this one particularly does not work - Select opened file. I've bound it with different key combinations (see screenshots below), and also I've verified that it does not conflict with any MacOS keybinds (although even the ones that conflict actually do work).
Also when I hover the actual UI button, it shows different keybind for it (which also does not work).
So, essentially, I have to always click the UI button with the mouse. I'd like to be able to do so with the keybind. I'm not even sure how to troubleshoot this...
Does anyone else using WebStorm have this keybind working properly?
It's a known usability issue, IDEA-271054. The actual action you need assigning a shortcut to is Other | Select File in Project View:
I found this documentation on suppressing certain inspections, and I remember using it before, however for some reason it is currently not available.
I am working on a UI for a Unity project and we are injecting a JavaScript function into the DOM from Unity. In WebStorm, the function is obviously undefined. Unfortunately, in the "fix" menu, I only have the following options:
Here is what I'm expecting, based on the docs:
I remember from using it in the past that it simply puts a comment before the call, but I don't remember what it is.
How can I enable this feature again? Alternatively, what is the comment so I can manually insert it?
Just as it's written in Help article, you have to press the -> key or click the right arrow button next to Create function.... menu item to open a submenu with suppress actions
You can also suppress it by adding a comment // noinspection JSUnresolvedFunction manually
I am working on some game in VS10, and I want to change the name of some variable, because I want to expand the game, however there is so much references to it, that I don't know from where to start. Is there any hotkey in VS10 that will do this in a moment for me? I know there is NetBeans hotkey CTRL+H, but this doesn't work for VS10.
First, any variable should always be declared and used in the smallest of scope.
In VS2010, whenever you rename a variable, it will prompt you whether you want all references to this variable is to be so renamed. A little red bar will appear underneath the name where you changed it. Move your mouse to that bar and an icon will appear with "Options to update references to the renamed object". You can choose between renaming all right away or with preview.
(The ability to rename all references to the renamed variable disappears when you go and rename another different variable. Perhaps there is a way to go back to an older rename but I have not found it.)
I tried renaming a public property of a class. The automatic renaming works too for references to that public property, at least when both are within the same code file.
As Retired Ninja said in his comment, you pretty much need add-ons for Visual Studio (like Visual Assist X).
Installing Visual Assist will give you a menu like this:
... where the "Find References" button searches for all references to that variable/function/namespace/etc and replaces it (not just a plain text search).
Other alternative is to open the "Find and Replace" window (press Ctrl+F), and click "Quick Replace". From there you can do a plain text search and replace (there's also wildcard and regex support (under "Find Options->Use:), if that helps).
There is CTRL+H in VS10 too. If you press it on the right side pops out panel which is basically interface for what you want to do about the modification. It has everything included, to modify that name only in the document/s which is/are currently opened, or even in the whole project. Bad thing is that replaces that name with everything it encounters, except for header name. So if I have something like fruit.h and I want to rename it in apple.h, everything will be renamed to apple.h except the name file, so it will throw an exception that aformentioned header couldn't be found.
I work with some very large files in Eclipse (3.5.2)
As I move the cursor around inside the file, I can lose track of which method my cursor currently in. As such I have to scroll all the way back up to the top of the function to see it's name.
Does anyone know of a way to have this displayed in Eclipse's user interface?
If you have the Outline view open, it tracks which method your cursor's in.
Another way is to turn on the "breadcrumb" across the top of the editor. It shows the full path to where you are: project -> source folder -> package -> class -> method/field.
Edit: It seems this feature is only available in JDT. Outline view seems to be your only option.
With R# is there a way to view/nav the set of methods in the current class?
I know you can use VS' native top-right drop-down but I'd like a shortcut.
This seems like an obvious feature for R# as it's something I miss most in VS compared to other programmer's editors.
Thanks,
Matt
(ps. sorry if this post appears twice but first attempt didn't seem to post successfully)
Two ways I use to navigate methods using R# are:
ReSharper->Go To->File member... (Alt + \, for me)
ReSharper->Windows->File Structure Window
The former invokes a popup with autocomplete where you can type the name of the method, or you can scroll through the list. The latter option is a window that provides an overview of the members in your class in the order they come in the file.
I posted similar thread few months ago:
Resharper: how to see only particular group of members
Vote for particular members browsing feature if you'd like:
http://www.jetbrains.net/devnet/docs/DOC-279
Resharper 2017.2 introduces navigation filters this allows you to filter methods "globally".
Resharper -> Navigate -> Search everywhere/Go to Type (Ctrl + T)
Type in /mm in the search box (this is the method filter mask).