I have many similar files where I want to be able to edit them all at once. Like with multiple cursors on one file but with single cursors on a couple of files. How can I do this?
You could use ctrl + shift + f to bring up the find in files panel and simultaneously update files that contain the same find search term, however it is a blind search/replace function.
A better option would be to use a utility tool like TextCrawler which allows searching in multiple files and replaces them accordingly. It offers a variety of settings to meet almost all your needs in the document and file editing arena https://www.digitalvolcano.co.uk/tcdownloads.html [][1image]
Taken from the Sublime webpage:
Split Editing
Get the most out of your wide screen monitor with split editing support. Edit files side by side, or edit two locations in the one file. You can edit with as many rows and columns as you wish.
Take advantage of multiple monitors by editing with multiple windows, and using multiple splits in each window.
Take a look at the View/Layout menu for split editing options. To open multiple views into the one file, use the File/New View into File menu item.
Related
The Issue
When you have Chrome browser open, if you have many different "windows" (as in "open in new window" vs "open in new tab") open, as I often do, it is useful to be able to join them all into one single window, leaving each tab intact. I use an extension called JoinTabs and it works great. A different extension, OneTab, merges all tabs into one tab by converting the individual tabs into hyperlinks -- that is not what I'm trying to do.
What I'm asking is if Notepad++ has configuration settings, a keyboard shortcut, or a plugin that will accomplish the same thing. By "the same thing", I mean not 'merging' all open documents into one document, but rather merging multiple documents dispersed across multiple Notepad++ instances (windows) into one windows.
Example
So, to be ultra clear, lets say I had three Notepad++ instances/windows/views open, and lets refer to them as A, B, and C for ease of discussion. A has 10 files open, B has 3 files open, and C has 5 files open. A working solution must move all open file tabs into window A and remove windows B & C, such that window A now will contain all 18 tabs.
Whenever I search for "join", "merge", or "combine" I keep getting text/document operations instead of view/display operations.
Research
When I search for this all I find are a bunch of false positives including stuff about:
Merging files into one
Merging lines
Merging all files in a directory
Using the 'combine' plugin from Heinz
FYI: Though it can be a little ambiguous, I've tried to take the ambiguity out of it by clarifying -- with a clear example -- what I'm asking. The 'combine' plugin doesn't do anything close to what I'm asking, and it can easily be seen if one take the time to read the description on the author website which says:
3 files (1.txt, 2.txt, 3.txt) can be combined to one file
Those are all entirely different than what I'm asking.
We are not after one file ... but rather all files in one window.
Looking at the Notepad++ Plugin Manager, there is an entry called combine:
...and based on the plugin's description, sounds like what you are seeking?
I have never used the combine plugin, so I have no other details.
I notice in VS2013 that if I highlight text with a view to making a change, the same text is highlighted elsewhere in the file. However, I can't seem to find the option to reflect the change in multiple places when I start typing.
Is this feature just for information only or can I actually do multiple replacements by typing the change once?
This is not supported out of the box.
But there is a nice plugin you can use to enable this, called MultiEditing.
H/T to Scott Hanselman :)
Also note that even in standard VS2013, you can edit multiple lines by "box-highlighting".
This is where you create a "box-selection" either by holding down Alt and dragging a box around the text, or by Alt+Shift+ArrowKeys. Then start typing and the same text will appear on multiple lines.
e.g. with the following text:
Some text to demonstrate
Some info to demonstrate
Some more to demonstrate
...if you Alt+drag a box-selection around all 3 occurrences of the word to, and then type which, it will look like this:
Some text which demonstrate
Some info which demonstrate
Some more which demonstrate
This also works with copy/paste - the pasted text gets applied to all lines within the box-selection.
It's pretty hard for me to describe here, so try it yourself!
Say a directory contains the following sixteen files:
pos1_conf1_1_OS_1state_lbs.out
pos1_conf1_1_OS_3state_lbs.out
pos1_conf2_1_OS_1state_lbs.out
pos1_conf2_1_OS_3state_lbs.out
pos2_conf1_1_OS_1state_lbs.out
pos2_conf1_1_OS_3state_lbs.out
pos3_conf1_1_OS_1state_lbs.out
pos3_conf1_1_OS_3state_lbs.out
pos4_conf1_1_OS_1state_lbs.out
pos4_conf1_1_OS_3state_lbs.out
pos5_conf1_1_OS_1state_lbs.out
pos5_conf1_1_OS_3state_lbs.out
pos5_conf2_1_OS_1state_lbs.out
pos5_conf2_1_OS_3state_lbs.out
pos6_conf1_1_OS_1state_lbs.out
pos6_conf1_1_OS_3state_lbs.out
If I open them all at once, by "File->Open" or "Drag&Drop", the files are opened in completely random order.
It should be noted that this happens both in commercial software such as ChemDraw and home-made utilities. I am wondering how to interpret or even control this random order of the files opened by MDI applications?
If I recall correctly, the file dialog returns the file with the focus rectangle first, and then the remaining files are in the order in which the dialog displayed them. There is no way for you to change this behaviour so if you don't like it you will have to sort the files.
I am trying to compare two large Visual Studio 2010 solutions using Beyond Compare. These solutions have 60 projects, the only way I can find to ignore differences in the bin and obj folders of each project is by right-clicking these in the compare results window. I don't want to have to do this 60 times, so is there any other way I can tell Beyond Compare to ignore these folders in each solution?
This is for version 3,
While you are comparing two folders you can go the menu Session->Session settings and go to the tab named Name Filters. There are several boxes to include or exclude files or folders; locate the one on the bottom right and on each line you can declare the folders that you want to exclude. There is an important combo box on the lower left corner where you can specify if you are going to use this settings for just this time or to use them everytime.
Another way to do this is simple look for the File Filters Toolbar (the one with a combo box and a pair of icons with a pair of glasses), in this combo box you can set your filter, for example -bin\;-obj\ and this will exclude the bin and obj folders.
I know this is old, but I came here looking for the same info for version 4.
Version 4 supports the same functionality but expose on the top toolbar in the session, just add the same -bin\;-obj\ in the "Filters:" text box:
Often, when I am reading code or debugging, I want the ability to quickly jump around files. I especially want to "go back" to where I was. I know about "Command+T", "Command+Shift+T", and, bookmarks. But, I cannot figure out a way to jump around files quickly.
UPDATE: I do not think I my question was clear enough judging by two answers given. Specifically, I am looking for a way to "jump back" to where I was in a file. I know how to navigate in TextMate (in general). I want to know if TextMate has a "jump back" key binding.
It's subtle.
The command-T thing has the files listed in Most Recently Used order.
So, you can go command-T return to get back to your last file real quick. At first I couldn't find it either.
I don't think there's a go to last edit location as there is in, say, IDEA/RubyMine.
Courtesy of MacroMates.com
2.3 Moving Between Files (With Grace)
When working with projects there are a few ways to move between the open files.
The most straightforward way is by clicking on the file tab you need. This can also be done from the keyboard by pressing ⌘1-9, which will switch to file tab 1-9.
You can also use ⌥⌘← and ⌥⌘→ to select the file tab to the left or right of the current one.
It is possible to re-arrange the file tabs by using the mouse to drag-sort them (click and hold the mouse button on a tab and then drag it to the new location). This should make it possible to arrange them so that keyboard switching is more natural.
One more key is ⌥⌘↑ which cycles through text files with the same base name as the current file. This is mainly useful when working with languages which have an interface file (header) and implementation file (source).
When you want to move to a file which is not open you can use the Go to File… action in the Navigation menu (bound to ⌘T). This opens a window like the one shown below.
Go To File
This window lists all text files in the project sorted by last use, which means pressing return will open (or go to) the last file you worked on. So using it this way makes for easy switching to the most recently used file.
You can enter a filter string to narrow down the number of files shown. This filter string is matched against the filenames as an abbreviation and the files are sorted according to how well they match the given abbreviation. For example in the picture above the filter string is otv and TextMate determines that OakTextView.h is the best match for that (by placing it at the top).
The file I want is OakTextView.mm which ranks as #2. But since I have already corrected it in the past, TextMate has learned that this is the match that should go together with the otv filter string, i.e. it is adaptive and learns from your usage patterns.
If you have a project window open, you can leave frequently-accessed files open (in tabs), and then use ⌘+1-9 to jump to open tabs.