RStudio floating function and rm() - rstudio

When I hover my cursor over a line of my script with a function, a little window with the function structure hovers at the tip of my cursor. This can be either the actual function or rm().
Questions:
How do I turn this feature off in RStudio?
When you click at a function already typed or when you type a function, RStudio should have a feature to display the function and its arguments at the border between the editor and console panels. Now sure how this feature is turned on.

Regarding question 1, uncheck the option "Show help tooltip after function completions" in Global Options -> Code -> Completion window.

Related

VSCode: how to scroll through IntelliSense overload signature suggestions

VSCode: how to scroll through IntelliSense overload signatures in TypeScript and in Javascript ?
Sometimes the IntelliSense hints e.g. (+1 overload) in a tooltip as you write "someObj.someMethod(" and shows one (first) overload, but how to see the other overloads ?
Your screenshot shows the hover tooltip for a method call, which only shows the overload that is actually being used. The only way I know of to see all overloads is in "parameter hints". The parameter hints appear automatically when you type the opening parenthesis of the method call, or you can put the cursor between the parentheses and invoke the "Trigger Parameter Hints" command, normally bound to Ctrl+Shift+Space. The parameter hints pop-up has two small arrow buttons you can click to navigate through the overloads:

Show Current Function on Toolbar in Visual Studio 2010

I wish to show the current function my cursor is in. I sorely miss this feature from VS6, I have tried customizing the toolbars but it should be no surprise I can't find it within the maze of hundreds of toolbar items, does anyone know what it is called and where its located? Or if its possible?
Let me give you an example. I'm debugging and see a variable is set to a certain value, I need to examine where this is set, so I search for variable name, Ctrl-F, F3, F3, F3, when the cursor is moved to the next result and if its in the middle of function I need to know very quickly what function its in, scrolling or any mouse interaction is a major slowdown in this process, I use the keyboard 90% of the time during my dev.
PS: note to visual studio developers. When you toolbar item list contains over 5,000 items it might be time to make it searchable lol!
In Visual Studio 2010, the code editor window has a toolbar at the top called the "Navigation Bar". In C++, C#, and VB the right-hand drop down in the Navigation bar is dynamically updated to reflect the current function or method that the cursor is in. You can read more about the navigation bar here:
How to: Navigate Code and Text

Xcode find caller functions

In Xcode, how can I find all caller functions of a specific function?
Xcode 4.5 (in beta) has this functionality. when you highlight say... a function, you can check the "caller" and "callee"
edit i believe it's located at the top left of the file panel for that file... so double click on the function to highlight it, and you click on on the file panel options (the one that has the "open recent, open unsaved...etc" drop down
EDIT #2
here's a picture to clarify (since i dont know what this menu button is called):
ALSO - XCode 4.5 is no longer beta, i believe, and is actually out in public
EDIT #3
also note that this caller thing does NOT search for being called under the performSelector method, as in, the particular caller that has this performSelector won't show up if you had done something like:
[self performSelector:#selector(checkIfShouldStopMovement) withObject:nil afterDelay:0.25];
In Xcode, the quickest method is this:
Select method in code (double click or mark using your mouse cursor)
Press Ctrl+1
Select "Callers" from the pop-up menu.
This is the shortcut for going View -> Editor -> Show Related Items in Xcode's menu.
use ⌘+Ctrl+Shift+H key combination on Xcode 7 onwards.
This can also be accessed via the assistant editor, as shown in the screenshot below. Whichever method you have the insertion point in in the main editor on the left will have its callers displayed in the assistant editor. I've found this to be the best way of looking through each caller in succession, since once you have "Callers" selected, you can then select the next caller via the next pop-up menu to the right in the jump bar.
In Xcode-7 you have the functionality of getting call-heirerchy. Right-click on the function and click "Find Call Hierarchy":
image reference:
Xcode 10 upwards seems to have made it easier. Just Command Click on the function and you should see it in the drop down.
Press ⌘+Ctrl+Shift+H shortcut when a method of interests is selected (with a mouse or cursor). (as per #uiroshan 's answer)
But you can also specify any another shortcut in XCode -> Preferences -> Key Bindings
Use Find in Project as Text or as Symbol.
AFAIK, there's no equivalent to e.g. Call Hierarchy known from Eclipse or NetBeans.
Strangely the refactoring tool can detect all method calls but not the search.
So I simply use it to rename my method to a unique name (eg. reset to resetPlayer) and then use the new name in a regular textual search.
1.) Menu > Edit > Refactor... > Rename to unique name
2.) search for the new name
The functionality is available in XCode 4.4.1, see this: http://smilingfinney.blogspot.de/2012/09/method-callers-in-xcode-44.html

Is it possible to get an MSDN help (local or website) for a selected Intellisense dropdown function using a kb shortcut?

So, very often do I wonder what a function does and open up a browser and head to MSDN to check more comprehensive description. Is there a keyboard shortcut I could use to open up the MSDN page of the selected function in the Intellisense dropdown automatically?
I usually just press Enter to insert it into the source code, then press F1 which takes you to the help of the identifier under the cursor. I'm not sure if there's one for taking you there straight from the drop-down, but a simple Ctrl+Z removes the inserted identifier later.
You can press F1 when your cursor is on the function. It will show you the MSDN help of the function. You don't even need to highlight it

Eclipse: Improve debugging and display variable values on mouseOver

Is it possible to view variable values in Eclipse when debugging? Right now when I "mouse over" a variable all I get is the definition.
e.g. for [int mLastView] I get [com.company.samples.MyClass.mLastView] instead of 1. The value that was assigned to it.
Also, is there anyway to improve debugging in Eclipse?
For starter: making the breakpoints visible as in VS (see below)?
Eclipse Break Point
Visual Studio Break Point
I posted this over at Stack Overflow and one of the suggestions was to go into Window -> Preferences -> Java -> Editor -> Hovers and select the Variable Values option and assign a modifier.
When I was first trying to resolve this issue, this was one of the options I looked at, but oddly enough, there was no Variable Values preference available, it was missing. Once my “fix” above was applied, it magically appeared:
Click to see the pictureBroken Link
Actually, since eclipse3.4, not only do you see the value of a variable when you pass the mouse over it, you can actually inspect it:
When debugging, hovers for variables have been enhanced to display an object inspector. The inspector will display logical structures according to the toggle setting in the visible Variables or Expressions view.
If you hit the breakpoint while you are debugging, you do see the value of the variable when you mouse over. You can also select an expression, and inspect the value of it's evaluation using the "Inspect" menu option. You can also use the "Variables" view to see the current value of all in-scope variables.
About breakpoint visibility:
Right-click on the right outline of the editor, you'll see some Preferences, and there in Annotations you can select Breakpoints. I personally added Text as Highlighted and some pinky colour. Shame that the highlighting is really buggy, sticks here and there, breaks between lines, etc. But it somehow works for most cases.
(Another shame is that breakpoint bullet is often hidden behind some suggestion icon or what - why they can't make the gutter wider like Idea does, I don't know.)
I got similar but a little different problem with the thread-starter. Sometimes during debugging, I mouse over a variable, I see it current value. Sometimes it's just the definition, like in coding mode. So what caused the first case, what the second?
PS: Of course I can always choose to view Variables (Alt+Shift+Q,V) but it's faster if you have mouse over value instantly.
Thanks

Resources