When I type "std::" in Visual Studio, I get a list of the members of the std namespace in an Intellisense dropdown. That's good; I like that. Then, pressing the down key will start to cycle through the elements in the dropdown.
But usually, when I press the down key with a dropdown active, I don't want to browse through the dropdown; I want to look at the next line of code. Is there a way to make that the default behavior?
I am aware that shift+down will perform the desired function (move to the next line).
Related
How can I change project view on eclipse from flat to hierarchical only using Linux terminal command without right click on the menu?
Although there is no command line option for this, it is possible to switch the presention between flat and hierarchical using only the keyboard, if you are already in the Project Explorer view.
Press Ctrl+F10 to display the view menu. Use the arrow keys to highlight the menu item you want (in this case, the Presentation menu item is the first, so just one press on the down arrow), then use the right arrow to show the sub-menu for that item. From there, you can either use the hot key (underlined in the submenu, so "f" for "Flat, "h" for "Hierarchical) or use the up and down arrow keys, then hit Enter when on the item you want.
I'm using the Platform Behavior in Construct 2 for a Windows 10 game. In addition to the arrow key, I would like to use the Space bar to get the sprite to jump. Can I tell it to call into the Platform behavior somehow or get it to let me map space bar as well as up arrow to 'jump'?
You certainly can. You can use an action called "Simulate Control" to simulate pressing left, right, or up. So as your event, use Keyboard->on Key Pressed (Space Bar). Then for the action Player->Simulate Control (Up Arrow). This will allow you to press space bar to have your character jump. Additionally, you can turn off default controls for the platform behavior and do custom controls for left, right, and up using the same strategy.
The best way to go about doing this is by adding an event that handles the Space Button. Make sure to add the keyboard object in your layout, and in the event sheet, you want to make an event that handles the keyboard -> on key pressed (choose the spacebar when asked) -> choose whatever object you want to jump with the Platform behavior -> Set Vector Y to whatever increment you'd like to jump. Be sure to list this value as negative. The y-axis in C2 is inverted, so negative numbers mean up.
Hope this helps!
In Android Studio, is there a way to highlight/mark/show the current scope, i.e. method name or class name we are (the cursor is) currently in?
It is time-consuming to scroll up until I find the enclosing scope, especially when the method content is long.
EDIT:
I already understand that there is a bluish line on the left-hand side marking the current scope, but what I want is the method or class name, because we still need to scroll up/down for that.
Also, when we put our cursor right after the closing bracket of the scope, we get the name of it at the top, when the scope is longer than one page, but this also requires me to scroll down to the closing bracket at least.
Just open the "Structure" tab (showing the class structure), and check the 'Autoscroll from Source' button (top right).
Then each time you click anywhere in a method, the method you are in is highlighted in the Structure tab.
If you want to know in which class you are in, just click on an empty line between methods, and the encompassing class will be highlighted instead.
You can also check the 'Autoscroll to source' button for jumping from 'Structure' tab to source. Or use the F4 key while selecting a method in the tab.
Note: I'm using Android Studio 1.4.1.
I working on Dialog based applications once i right click on the Dialog Title bar a drop down list is coming with two options 1. Move and 2. Alt+F4 close. Once the User Press Move and he can able to drag the window as he desired and I add the On NC Hits Test to stop dragging its stopping normal dragging but it is not working in this particular context can any body help me in fixing this Bug.
When the user use the keyboard interface, he can move a windows with the arrow keys, without using the mouse.
If you want to limit the position of your dialog, process the WM_MOVING message.
At the moment, I have code that runs in the Application's SheetBeforeRightClick event, but I've found that this code doesn't run when I press the keyboard's Context Menu key instead of using the right mouse button, which means that I get the wrong menu.
I could use the SheetSelectionChange event instead, but I'd imagine this would be quite error prone. Is there a more elegant way of doing it?
There is a BeforeContextMenu event you can use.
http://msdn.microsoft.com/en-us/library/aa193082(office.11).aspx
It should catch both the right click and the keyboard key.