Aptana Studio 3: Keyboard Shortcuts for Compare? - keyboard

Is there any way to assign keyboard shortcuts for compare functions? I want to be able to click a key to select the next difference, another to replace from left to right, and another to replace from left to right. This seems so basic, but I can't find it anywhere!

Window/Preferences/General/Editors/Keys
filter using the word "compare", see if that is what you are looking for

Related

Android Studio 4.1 layout editor can't select two elements

When I click one element
then hold the shift key
and try to select another element
the first one is DE-selected!
What can I do?
I suppose you should hold the CTRL-key instead of the SHIFT key.
Sorry the thing is I was trying to select the elements in the Blueprint window. It worked when I made the selection in the Compoment Tree window.
where I've been misdirected

Multiple cursors from find result

I have a regex in my find box and want a cursor at each found location (I'm actually trying to delete a load of new lines in paragraphs but there's far to many to do by hand).
How can I get a cursor at each location that matches [\w]$?
Click the "Find All" button at the far right of the find panel, and ST will select all the matches.
The shortcut Opt + Enter should work if you're looking to stay on the keyboard.
If you want to search for a simple string, you may select it right in editor and use Find All:
Windows/Linux: Alt+F3
Mac: ⌃+⌘+G

In Intellij Translation Editor, how do I jump / go forward to the next item?

IntelliJ and Android Studio have a great "Translation Editor" where it shows you all the <string> entries of the strings.xml and you can add items and locales on the fly. It also shows which strings are not translated yet and offers a blank box to enter the translation
To use this rapidly, I would like to go from one string entry directly to the next without needing to switch to the mouse, hover around and double-click on the next item. It looks like this:
I think this is something any user would love. I was surprised when I couldn't make it happen. I can move to the next row via Enter but that row is then only focused, not selected and I can't type. I tried Enter again, Shift+Enter, F2 and many many many more keyboard combinations. Still no success
So: How can I either move to the next item directly or select a focused item in the Translation Editor?
My version is 14.1.4
To select a focused item press F2 (working in Translation Editor on Android Studio 2.2)

microsoft visual studio 2012 find and replace focus to find all

When you do a search in vs 2012 via the Find and Replace (cntrl shift f) the default focus is on the Find Next. How can you set the default focus to Find All.
Because its very frustrating because it will do a very slow search on find next and I want to do a find next (just like in the prev Vs Studios)
Ctrl+Shift+F puts default focus on "Find All". So if you press Enter, you will get Find All. If you want to select "Find Next" from this box, press Alt+F while focused on this search window instead of Enter. This tip doesn't change default focus, but it does give you keyboard access to Find Next.
If you want a search box where Enter does "Find Next", try the Ctrl+F search box. In the Ctrl+F window, you could change the search scope from "Current Document" to "Entire Solution". Then the Enter key would Find Next through the entire solution.
You may also use the F3 function key as a workaround. Who in his right mind would think Enter key is for finding all matches instead of cycling through each find?

Replace String in all files in Eclipse [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed last month.
Improve this question
How can I search and replace a String in all files of my current project?
Let's say I have the string "/sites/default/" now I want it to be "/public/sites/default/", but there are almost 1000 files.
Goto "Search"->"File" from menubar at the top left
Enter text, file pattern and projects
Click "Replace..." button at the bottom
Enter new text click ok
Voilà...
Depending on the file type you are focused on, Ctrl+H will open up different types of search screens.
A more consistent hotkey would be using the Alt method: Tap Alt, then A, then F.
Efficient Order of Operations:
Ctrl+C the text you want to do the replacing (if available)
Highlight the text you want to be replaced
Tap ALT, then A, then F. Brings you to File Search. The selection from (2) will auto-fill the search box
In the “File name patterns” input box, type in “.java” for replacing all Java files or type in "" to replace in all files
Click “Replace…”
Ctrl+V (Paste). Or type in the value you want to do the replacing
Enter
You can find more details in my blog post: http://blog.simplyadvanced.net/android-how-to-findreplace-in-multiple-files-using-eclipse/
Use Ctrl+H for opening Eclipse search dialog, select appropriate search tab and select "Replace..." to get you to the "Search and replace" dialog
Strange but it is a two step task:
Search what you want
In the search tab right click and select replace , or replace all:
A demo at:
http://www.avajava.com/tutorials/lessons/how-do-i-do-a-find-and-replace-in-multiple-files-in-eclipse.html
Tonny Madsen said it right, but sometimes this is too simplistic.
What if you want to be more selective in your replacements since not all replacements are correct for what you're trying to do?
Here's how to get more granularity to do the replacements only in certain folders, files, or instances:
First, do like he said:
Click Search --> File... OR press Ctrl + H and choose the "File Search" tab.
Enter text, file pattern and choose your Workspace or Working Set.
Then:
Click Search
When your results come up, make some folder, file, or instance selections by Ctrl + clicking on the ones you'd like to select. Ex: here's my selection. I've chosen 3 instances, 1 file, and 1 folder:
Now, right-click on your selection and go to --> Replace Selected.... Here's a screenshot of that:
Enter what you'd like to replace it "With". In my case you can see it says it is "Replacing 190 matches in 4 files". Now click OK.
Voilà!
References:
Here's the tutorial I came across that taught me this: http://www.avajava.com/tutorials/lessons/how-do-i-do-a-find-and-replace-in-multiple-files-in-eclipse.html?page=2
ctrl + H will show the option to replace in the bottom .
Once you click on replace it will show as below
There is an option in search => file and shortcut is Ctrl+H. Go for further refer follow link. This is work fine with Eclipse Neon
Is there a way to find/replace across an entire project in Eclipse?
If you want to replace two lines of code with one line, then this does not work. It works in notepad++. I end up open all files in notepad++ and replaced all.
Ctrl+F gives me Find/Replace dialog box.
Or you can,
First Alt+A
Next Alt+F
Then press on Replace button.
If non of them worked:
Goto -> Window -> Preferences -> General -> Keys and search for replace then you will see binding for Find and replace. In the bottom of that window, you can add your key to Binding text box. There you can add or edit any keys as shortcut.
I have tried the following option in Helios Version of Eclipse.
Simply press CTRL+F you will get the "Find/Replace" Window on your screen

Resources