Keyboard short cut for firebug "Edit watch" - firefox

In the firebug plugin for Firefox, under the Script Tab, in the right hand side window, there is the watch tab. Here you can enter a variable name, or javascript expression and have it evaluated.
If you need to change that expression, you can right click it, and select "Edit watch expression..." On occasion you can double click it, and it will let you edit, but sometimes this does not work. Usually when you are watching an object.
Is there a keyboard short cut to edit the selected watch expression? Or a consistent way to use double click to edit, instead of expanding the object.
I expected F2 to work, but that does nothing.

I've found that if you double click in the far right of the input section (just to the left of the delete button) then firebug will start editing the watch for you.

Related

Mouseless Navigation in Safari with Cmd+F on Mac

how to choose highlighted search results from the (cmd+F) word search? I know that I can change from one to the next one with "Tab" button. Pressing the "Enter" button on the highlighted word (in order to open that new link as I did on my Windows, but it does not work on my Mac). I always have to use my mouse in order to open/click on it. Is there another way to choose? I want to navigate faster through Safari.
Thanks
If you'd like to navigate faster through Safari, you can use a plugin/extension called 'Gleebox'. It's very useful for selecting links simply by pressing a shortcut (which you can set to whatever you like) and then typing the word. It will highlight it in green and you can press enter to select it. You can also press tab to move from item to item. It can also help you select just headers, image links, etc.
Gleebox for Safari is experimental however. Using Chrome, it can be downloaded here: https://glee.github.io/

Is there any way to unbind escape from opening the autocompletion menu in XCode?

I'm coming from predominantly using VIM for everything, and so I have a habit of hitting escape basically any time I finish typing. Is there anyway to ONLY unbind the autocomplete menu from appearing when hitting escape? If I remove the 'cancel' keybind for esc, then it stops popping up the autocomplete menu, but I can't cancel anything and instead I get upside down question marks whenever I hit escape.
Preferences->Text Editing->General tab->Code Completion->Escape key shows code completions.
Uncheck it and you're set. Here, have a pic with the obligatory hand-drawn red 'circle':

Where is the expression window in Xcode 4?

How can I add an expression to watch in Xcode 4?
This should be very obvious, but it is not. It does not seem to be down any menu or available on a contextual click. It would be nice if I could highlight a variable or expression and then "Add to watch" or "Add expression".
I don't know that there is an option to create a watch expression directly from Xcode 4's code window. If there's something in the code window you'll want to add an expression watch for, I think you'll have to copy that code to the clipboard.
Then while debugging, make sure the debug area is being shown. It is the bottom center view in Xcode. You can show this area by clicking the appropriate view icon from the debug view.
Then in the lower left of the debug area, you have your watch list. You can add an expression to this list by right-clicking and selecting Add Expression:
Right-click to add an expression http://blog.roughfalls.com/non-wp/img/xcode4_addexpression.png
After you select this option, a dialog appears. You can paste the expression that you copied to the clipboard into this dialog, and click "Add." Watch expressions are denoted in the list with a small "E" icon to their left.
Just a note: I had a problem with expressions that they didn't get evaluated (Expression in Xcode 4.3.2 Debug area not evaluated).
To make it working, I had to include also the result type of the expression (e.g. (NSString *)[tag name]).
The image link is broken in the accepted answer, so here is an image to supplement it.
Right click the watch list in the debug area and choose "Add Expression..."
For those looking for a Swift usage of Add Expression:
Right click the Variables View in Debug Area. Then choose the Add Expression
Write your instanceName or instanceName.propertyName and press enter. It is that easy.

add watch not working in Visual Studio 2010

I right-click in the Watch 1 window and select Add Watch but nothing happens.
It is very unintuitive. The command doesn't do anything beyond adding a new row and selecting it. You next type the name of the variable. More intuitive is right-clicking an identifier name in the editor window + Add Watch. Or drag + drop it into the Watch window.
Right click (in your code) on the variable or expression (select it) you want to watch. It will be added to the Watch window.
Little question, large answer! You give us few details of what is happening...
Summarizing, be sure that current statement is around the place where your desired watched variables are, so you can see them on debug mode, i.e.:
Place a break point near there (press F9). Remember that it must be where the variable exists (remember that on C/C++/C# a common variable created inside brackets ({ and }) will be inaccessible outside it - something like that occurs on other languages);
Run the program (F5) and do something that let you on the right place (like pressing a button that launches the function where there are variables you want to watch);
To choose a variable to watch, on debug you must press mouse right button on it and "add watch". "Walk towards" using debug functions step into (F11), step out (shift+F11), step over (F10) or run-until-next-break-point (F5).

Textmate tab and de-tab selected block

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented.
On Textmate however when I try this it just replaces my selected text with a tab. So is there a way to do tab and de-tab lines of code in textmate?
Indent: Alt+Tab
Un-Indent: Shift+Alt+Tab
the hotkey is command-left bracket to move left and command-right bracket to move right
(the buttons next to 'p')
heres a link to more hotkeys and such
http://projects.serenity.de/textmate/tutorials/basics/
You can use Shift+Tab to decrease indent; You just need to make and assign a macro. You can reuse this technique to accomplish a great many things.
Enter some text, and intend them, this is mostly for feedback.
Click the Record Macro Button
Use ⇧+⌥+⇥ (aka; Shift + Option + Tab) to decrease the indentation.
Click the record button to stop recording the macro.
Use the Edit menu or ⌃+⌘+M to save your macro;
Saving will prompt you to create a new bundle*, or add your macro to an existing bundle.
Add a Key Equivalent by clicking in the field and pressing ⇧+⇥
Your bundle-macro should look like the one below, simply Save and you're done! TextMate will now decrease indent on ⇧+⇥
*: (as noted by u/PatrickT) Sadly the create new bundle functionality has not yet been implemented, and you must choose to add to an existing bundle. You can still create a bundle via Bundles -> Edit Bundles then Command + N.
As an alternative, you can change the keybindings, see Link
Here is what I did:
Install Link
Go to File -> Open -> User Key Bindings, this will create/edit ~/Libary/KeyBindings/DefaultKeyBinding.dict
Add a binding, for the action enter shiftRight: (indent) manually (this is a TextMate specific action and not in the pre-populated actions list)
Choose a shortcut, I used cmd+alt+right
Do the same for the action shiftLeft: (un-indent, I used cmd+alt+left)
Save and then restart TextMate
I used a shortcut with arrow keys as my right hand is already on the arrow keys when I am selecting multiple lines, so this is a good fit.
The reason why I did it was because I have a german keyboard and alt+tab/alt+shift+tab don't work for me since I am using Witch for app-switching using these exact shortcuts.
EDIT: cmd+alt+left/right don't work when you have multiple tabs open, as they are used for navigate to next or previous tab in TextMate... seems this cannot be changed or overridden (I tried Setting Shortcut Keys in Textmate). Looking for an alternative shortcut now.

Resources