4

I just become a Mac user and I've been looking for a decent free code editor, thus I found Textwrangler.

However, I like it a lot, I only have one problem with it. How does one open a new file in a new tab rather than a new window?

I open a directory with it and have the tree, but each time when I click on a file it closes the current file I am viewing and opens the new one.

enter image description here

Is it possible to have things open in a new tab as when you one a link in a new tab in Chrome or more exactly how you open a new file in Notepad++ on Windows.

3

Forgive me if it this is off-topic, but have you tried Sublime Text yet? I used to use textwrangler, but I haven't looked back since I switched to Sublime. A must have for me is the multiple cursors, which I have not seen anywhere else. By the way, Sublime is not (technically) freeware, but they let you download and install it for free, just bugging you from time to time, asking you to buy, but without limiting any features. Off course, in case you adopt it it would be fair to purchase it, but if you are on a budget it is ok to postpone. Hope it helps.

  • I thought about Sublime Text. I actually managed to download it right after I posted this. I don't know if it's my luck or not, but I still don't manage to open files into a new tab. On top of that Sublime Text doesn't offer support for .less files, thus I tried 2h to add support for it and no success. Also, I didn't manage to make the Package Manager work. Thanks for the answer tho! Much appreciated! – Dragos Rizescu Mar 12 '14 at 5:18
  • Not to mention Sublime Text is $70 rather than free. – Tony Williams Mar 12 '14 at 6:18
  • @DragosRizescu : every file opens in its own tab, and you can rearrange the tabs as you would do on a browser window. you can also grab the tab on the window that you have open and move it over to another window as well. If you open a folder using Sublime, you will see a sidebar just like in TextWrangler. Clicking on a filename once will display it, and double-clicking on it will open it as a new tab. – Marcello Mar 12 '14 at 22:52
  • @TonyWilliams : Yes, the paid license for Sublime is $70 , but other than bugging you from time to time to buy it, the unregistered version has no limitations. – Marcello Mar 12 '14 at 22:53
  • I know this is an older thread, but I came across it for the same reason as the OP; wanting a Notepad++ type code editing experience on my Mac. To that, I use TextWrangler for quick edits or when I just want to mess with one or two files, but when I'm dealing with larger projects, I actually use Visual Studio Code .. Tabs on top, dark theme, C/C++/C#/etc. support, tab-to-space, and so much more. It's actually quite a nice experience when you're switching between Windows, Mac and Linux to edit code. – txtechhelp Mar 22 '17 at 17:08
3

Command + Option + [

or

Command + Option + ]

to navigate between open documents in the single window.

0

TextWrangler has a separate disk browser and editor view.

In your image above you are in the disk browser. From the disk browser press return when you are showing the file you want to edit. It will open in a new window.

Go back to the disk browser and when you hit return it will load a second document into the same editor window.

Now you will see a sidebar that allows you to move between your open documents. There are also menu commands and keyboard shortcuts galore to move between documents in the current window and move documents between windows.

  • What do you mean by press return? – Dragos Rizescu Mar 12 '14 at 21:08
  • Press the return key or alternately, double click on the file name. This open the currently selected/displayed file from the disk browser in the edit window. – Tony Williams Mar 12 '14 at 23:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .