VisualStudio, focus on the texttip popup - visual-studio

I was used to the Eclipse IDE that when you hover the mouse on any place in the code it shows a text over the editor (in a popup window) with things like the Error of the line, the documentation of the variable and etc..
Now on VisualStudio the same function exists and I'm able to use the texttip to check the objects docs and etc.. my question is:
How can I focus the popup window so I can copy the text from the tip?
PS: On Eclipse that used to be the F2 (or F3, not sure) key.

Related

Inspect the Markup used in CKEditor Styles Dropdown

I want to inspect the markup of CKEditors Styles Dropdown.
The problem is, I can't click firebugs 'inspect'-button, because the dropdown immediately closes when clicking somewhere outside of it.
I want to see what exact markup is being used so I can style it better.
I found a way to do it even if it is a little tricky.
If you are using Chrome you can press F8 while having the developer tools opened. F8 pauses on next script execution.
So if you hover over the desired element, then press F8, then move your mouse a bit inside/over the element, the script execution will pause with that dropdown opened and you will be able to rightclick -> inspect it, as long as in pause.

working with xamarin code templates

I am trying understand hot xamarin code templates work and how to use it.
By reading the manual it appears the a user can select the code templates by clicking on it or hitting enter on it. Just like in eclipse and intellij.
But this seems not to work the same way in xamarin.
For example after I typed "try" in the editor and hit ctrl+space to get the code complete. Now I am presented with options to select. When I select try and click or hit Enter on it nothing happens. The code complete window just closes and the template is not added.
The animated gif demonstrates it with the mouse click event. But the behavior is the same for key events. Also no matter what I template I select it is never pasted.
You need to press tab key after you have selected the text. You basically have to press tab - tab. The first tab will complete the try text in your example. You may have only typed in t or tr. The second tab key press will expand the code template.
The behaviour is similar to Visual Studio. The difference is that Visual Studio gives you more information in the completion window that appears telling you that you need to press the tab key twice. Screenshot from Visual Studio is shown below.
With the screenshot above pressing tab once will close the completion window but not insert the code for the try template. Pressing tab again will insert the code template text.

Refector-Rename ASP.Net Controls

Is there any way to Rename ASP.Net Controls without searching the complete Markup or Codebehind.
In Visual Studio there is Refactor Rename but this only works in Codebehind I still have to search the Markup code.
I'm using VS 2008.
Yes. I've found that the easiest way to do this is from the code behind.
There exists a shortcut called Rename Refactoring that is bound to the keyboard combination (Ctrl+R, Ctrl+R). The combination is listed as "Refactor.Rename" in the keyboard settings, if you want to change the shortcut (or if it's not bound, for some reason, you can set it yourself.)
To rename your ASP.NET control, navigate in the aspx.vb file to a reference of the control. Put your mouse cursor on the variable name. Press the keyboard shortcut. Now, you can either start typing (will erase the previous name and start typing a new name), or click somewhere or use the arrow keys to navigate to a specific position in the variable, after which you can add/remove/change the name as you please.
Clicking elsewhere will not apply the changes. To apply the operation, either click "Apply" in the dialog at the top-right that appeared, or press Enter.
The ASP control will be renamed in the VB code, and in the aspx code!
Note that there are certain file types where Refactor.Rename is "not available", such as .ashx or Visual C++ files.

TextMate has stopped recognizing comments

My textmate suddenly stopped recognizing comments in code and the shortcut for commenting out code (Command + /).
I have found Comments in the Bundle Editor for HTML, but it doesn't look like I can set an activation key for it or anything.
Does anyone have any experience with this part of TextMate?
cheers!
Maybe it went out of scope? Doesn't matter what caused it, it's easy enough to fix.
Open your Bundle Editor
ctrl-option-cmd-B
Make sure that the Menu button at the
top left-hand side of the Bundle
Editor displays Show All
If it doesn't then click the up/down
arrow and change it so that does
Scroll down until you find the
Source bundle
Click the arrow to the left of
Source to display the Bundle contents
looking at the Source Bundle items
with green "C"s next to them, find the item
called Comment Line/Selection
Click Comment Line/Selection
In the upper right-hand corner of the
Bundle Editor, click the Settings
button
Next to Activation, select the menu
item Key Equivalent
Whatever is in the text box to the
right, replace it with cmd-/ (with
your cursor in the text field, press
the keys "cmd" and then "forward
slash"
Verify that the item Scope Selector
text area is blank--nothing should be
in there
Exit the Bundle Editor, Restart
TextMate, open a new editor window
(cmd-N) then enter cmd-/ to verify
that it's working
This command is not limited by scope so it will work in any context/environment/language, but because it is not limited by scope it can be overridden by a Bundle-specific comment command (e.g., a comment command in the HTML Bundle, so, if after you've followed those steps, it's still not working, you just need to find that Bundle-specific comment command and either fix it (using the steps above as a template) or then use the steps above as a template) or deleting it.
While you're at it, you might as well fix the command in your HTML Bundle:
from your Bundle Editor, scroll down to the HTML Bundle then click on the Comment item (you said in your Q, you had located it). Click the Settings button on the upper right-hand corner, and verify that Activation is Key Equivalent and cmd-/ is in the adjacent text box. Next verify that Scope Selector is text.html

Setting position for prompt in Visual Studio?

How can I set the position for the output prompt in Visual Studio 2008 when debugging is started?
I have two screens and I want the prompt to always appear on my second screen so that I still can see the code on the primary screen, I have tried some tricks but I haven't got it right.
I'm not sure what you mean by "outputprompt". If you are creating a command line application and are talking about the command window, then
position the window where you want it (you can pause you app if it closes too fast)
click on its system menu, then click on properties
on the third tab of the appearing properties dialog, enter the values you like (be sure to uncheck automatic window positioning)
close the dialog by clicking OK
in the dialog that appears, pick the option that changes the link, instead of just changing the current window (I'm not sure either a German or English translation of the options is helpful for you)
HTH.

Resources