Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I edit multiple files simultaneously with sublime?

Tags:

sublimetext

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?

like image 739
Ali Ikinci Avatar asked Sep 09 '14 08:09

Ali Ikinci


People also ask

How do I open multiple files in Sublime Text?

To do so, you need to press Ctrl+K, then Ctrl+Shift+Up. You can repeat as many times as you like. Press Ctrl+K, then Ctrl+Shift+Up to open a new sub-window.

How do I edit mass files?

To start, create a new group. Go to Replace > Add Group, and give your group a name. Right-click your group and select Add File(s)… to add the files and/or folders you want to edit. In the Files / Folder Properties, select your Source Type, i.e., a single file or folder, then choose the Source File / Folder Path.

How do I split view in Sublime Text?

To view two row (horizontal) panes side-by-side use the shortcut SHIFT-ALT-UP-2 (PC) or SHIFT-OPTION-⌘-2 (Mac). Replace the last stroke with “3” to view three panes respectively. If you want to split a pane further, you can use ST3's “Group” feature.

How do I close multiple windows in Sublime Text?

Now all opened tabs will be close with out exiting Sublime Text by using Ctrl + Alt + Shift + W .


1 Answers

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.

like image 100
Rob Avatar answered Dec 08 '22 03:12

Rob