Flow-type WebStorm how to show type hints on mouse hover over object variables - webstorm

In flow-type, on mouse hover over variable of any type object we do not see type hints:
However, WebStorm does see the type is:
Searched well and played with the setting, but could not find how to tell WebStorm to expose the type hint on hover.
I want WebStorm to hint similar to how TypeScript does:
(this is TypeScript)
By the way, for string or number we get type hint for flowtype:
So, is this possible to enable object type hinting on hover with flowtype?

Related

Why does my edit control "add variable" popup box not have CString as an option

I'm very new to MFC and dialog boxes. I am attempting to follow a very simple YouTube tutorial: "VC++/C++ MFC tutorial 1: Creating a Dialog box for user input"
The video, and many other sources seem to have CString as a variable type for the edit control however I only have primitive types (see attached image).
Currently running VS2017
I have attempted to reconfigure some of project settings by creating a new project. however, I am just turning knobs blindly at this point.
Available Types on my version.
Shows the type (CString) that I was hoping to have.
When you right-click the actual class itself to add a variable it only shows a generic list of variable types. However, as you can see, you are not limited to the values in the drop-down list. You can also type in a value, like CString. This is the same in VS 2019:
When you right-click a control on a dialog, the IDE knows what type of variables it will usually map to. So if you right-click a EDIT control, and choose to map it to a value instead of a control, it defaults to CString.
This is documented on the Microsoft website:
If you're adding a member variable that isn't a dialog box control, select from the list of available types. For information about the types, see Fundamental Types.
If you're adding a member variable for a dialog box control, this box is filled with the type of object that is returned for a control or value. If you select Control, then Variable type specifies the base class of the control you select in the Control ID box. If the dialog box control can hold a value, and if you select Value, then Variable type specifies the appropriate type for the value that control can hold. For more information, see dialog box controls and variable types.

Sitecore Rendering Parameter

I have rendering items and I can open its property dialog pop-up by using below javascript.
Sitecore.PageModes.PageEditor.postRequest("webedit:fieldeditor(command={11111111-1111-1111-1111-111111111111}, fields=field1|field2|field3, id={155DA3B8-41D9-4DA3-9D87-CBA72F67A0E2})");
However, I had to add Parameter Template for one rendering item. So, I created parameter template (Custom Styles) like this screenshot, but below javascript is not working.
Sitecore.PageModes.PageEditor.postRequest("webedit:fieldeditor(command={11111111-1111-1111-1111-111111111111}, fields=CSS1|CSS2|CSS3|CSS4|CSS5, id={F7D900EF-9D68-4488-855D-B96FBF6D9F27})");
I guess these fields are from parameter and I might have to use another command to call this pop-up, right? any idea, please?
This is what I found and there is webedit:editrenderingproperties command, but I don't know how I can use this command.
Sitecore.PageModes.PageEditor.postRequest("webedit:editrenderingproperties(.......)");
http://www.sitecore.net/learn/blogs/technical-blogs/getting-to-know-sitecore/posts/2013/11/updated-field-editor-for-rendering-properties.aspx
Try webedit:ext:renderingfieldeditor instead (of course, if I understood your problem right).
There is an article that describes exactly what you are looking for:
Field Editor for Rendering Properties

Show value for custom type in object inspector

While you are debugging in QtCreator, the object inspector shows a column named Value. For native types it shows their value, but QString is not a native value and its value is shown too.
In this picture, foo_object is a custom type and I want to show its description. Is there any way to do that?
In order for a custom complex type to show up properly in Qt Creator's object inspector you should either use an existing or write your own debugging helper.
They basically allows you to define how your data should be interpreted.

How to instantly change name of variable for all references in project

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.

How do you find variable and function definitions in Anjuta?

Is Anjuta capable of telling you where a variable or function is first defined?
If so, how do you do it?
EDIT: Is there a way to hover over a symbol and jump to the definition like in other IDEs? For example, in netbeans you can ctrl+click a symbol and it takes you to the definition, and in KDevelop you can hover and and interactive tooltip helps you navigate to the definitions. Nothing like this in Anjuta? No plugins?
As mentioned in a comment, this seems to be the only way (unless there are unmentioned plugins):
"Open the Symbols left panel, then double-clicking on your desired symbol should get you closer to you goal. It's been a while since using Anjuta, but I remember well doing this move in order to track variables and method definitions. EDIT: In the menu, follow View -> Symbols"