10 ms·
Sublime Text 2 Beta released with Auto-complete and Improved UI
- pospischil 15y agoFor those wondering, auto-complete is quite fast. I've always avoided IDEs that offered this because they seemed to be terribly slow -- pleasantly surprised so far.
- cosmez 15y agodoes it support any kind of CTags?
- willy1234x1 15y agoThere are Sublime Packages that do, but I don't think it's built-in support.
- dflock 15y agoYes: https://github.com/SublimeText/CTags https://github.com/SublimeText/CTags
- sunchild 15y agoThis is such a great editor. Each update adds things I really appreciate. (How did I ever live without indent guides?) I've been working in XCode so much lately that I've gotten really used to this style of autocomplete, so this update is very welcome.
- alwillis 15y agoYes—indent guides are pretty sweet.
- fletchowns 15y agoI love the new look of the tabs, really nice improvement. Great to see autocomplete is built in now, I was using this one before: http://news.ycombinator.com/item?id=3064171 http://news.ycombinator.com/item?id=3064171 The new autocomplete even has lorem ipsum in it :)
- rorrr 15y agoWhat I really miss in all these fast small editors is the quick-jump features that actually analyze the code and let me do things like 1) Jump the the function/method definition (even if it's in a different file) when I press Ctrl and click on the function name. Eclipse does this. 2) Quick find of the function/method definition across the whole project. Eclipse does this as well (Ctrl + R). I don't use Eclipse that much, because it's ridiculously slow, but it has cool features.
- daniel02216 15y agoYou can get this sort of navigation with ctags ( http://ctags.sourceforge.net/ http://ctags.sourceforge.net/ ) and a plugin like this one: https://github.com/SublimeText/CTags https://github.com/SublimeText/CTags I also use cscope: https://github.com/ameyp/CscopeSublime https://github.com/ameyp/CscopeSublime
- est 15y ago> Jump the the function/method definition for scripting languages, define a function as concatenated string in eval(), how could you find the function definition, without actually run the script for once? Even if you run the script once, what if there is a delete_file() function you accidently called? So do we need to implement a sandboxed VM in order to find definition, theoretical perfectly speaking?
- tsandall 15y agosure, theoretically speaking you can't figure out everything until runtime, however even with 'scripting language' code you can still get quite far with basic static analysis.
- johns 15y agoOr just don't offer click navigation on functions defined in eval(). Acceptable trade off.
- rorrr 15y agoThat's such an edge case. I've never seen anybody defining functions in evals, especially as concatenated strings.
- tumult 15y agoI really wish Emacs had smooth scrolling, indent guides and that Minimap. Those are some killer features that you can't just implement in Emacs' scripting language. edit: minimap exists! (Obviously only in GUI Emacs) Animated sub-line scrolling probably requires hacking the Emacs source. Indent guides might be possible just in elisp, but I don't know how good they would look.
- est 15y ago> you can't just implement in Emacs' scripting language. you can't implement minimap in CLI. It's a GUI concept.
- thristian 15y agoNow now, let's not be hasty. Here's a text-mode app with thumbnails across the bottom of the screen: http://caca.zoy.org/wiki/neercs http://caca.zoy.org/wiki/neercs
- sodiumphosphate 15y agoYeah but that looks like caca now, doesn't it?
- Flow 15y agohttp://www.emacswiki.org/emacs/MiniMap http://www.emacswiki.org/emacs/MiniMap
- nyellin 15y agoLet me point out that the Emacs minimap is way cooler than that of SublimeText. Check out the semantic overlays.
- deleted 15y ago[deleted]
- naner 15y agoI'm not sure what "Animated sub-line scrolling" is but "smooth scrolling" returned a lot of hits: http://stackoverflow.com/a/4160949 http://stackoverflow.com/a/4160949 http://www.emacswiki.org/emacs/SmoothScrolling http://www.emacswiki.org/emacs/SmoothScrolling http://zwell.net/content/emacs.html http://zwell.net/content/emacs.html https://emacs.wordpress.com/2007/09/10/smooth-scrolling/ https://emacs.wordpress.com/2007/09/10/smooth-scrolling/ Yes, trying to do fancy things in Elisp can be a bit kludgy.
- hastur 15y agoNo doubt Sublime has all kinds of nice features, but to me the best thing is the aesthetics. It's simply a pleasure to work in this editor. Sometimes I just like to have it sit there on the second monitor, while I do something entirely different on the first one. :)
- zyb09 15y agoI'm confused, doesn't it already have auto-complete? Mine's been doing that for a while now. What's new about this?
- lukeman 15y agoWas hoping for some sidebar love in the new theme (file and folder icons, renaming files in place), but the changes seem good so far.
- Baggz 15y ago+1
- pilif 15y agoMy favorite feature (already added in an earlier development release, but now finally in the beta track): On OSX, if you are editing a file you don't have write access to and you want to save it, Sublime now asks for authentication than then saves the file. This is very convenient and not having this was the reason for still having TextMate around.
- saurabh 15y agoIs there any way to do the same in Vim?
- Simon_M 15y agoThat's one annoyance out of the way. Is there a decent way to work with remote files yet? This is always the killer for me.
- Deezul 15y agoTry this out: http://wbond.net/sublime_packages/sftp http://wbond.net/sublime_packages/sftp I haven't used it, but I'll probably end up taking a look at it soon. Please report back if you end up using it.
- hackNightly 15y agoBeen using this package for some time now and can say that it's been great. It's super-fast, and is integral to my work flow.
- veidr 15y agoThe great thing about ST2's autocompletion is that it is totally extensible, allowing you to hack your own completion routines. I wrote an indexer for Objective-J code last year, that scans a set of folders (which can include the Cappuccino frameworks if you like) and creates a completion index of all the class names, methods, functions, etc. It was trivial to make an ST2 plugin that completes using that data. The abilitity to write your own autocompletion plugins for the freaky/obscure kinds of files you use really rocks. Even without heavy-duty semantic analysis of the code, you can get 90% of the way there and it is really useful. The main problem right now is that the UI is still too narrow. Voting this issue up could help get that fixed: http://sublimetext.userecho.com/topic/85632-need-the-completion-menu-to-be-wider/ http://sublimetext.userecho.com/topic/85632-need-the-complet...
- itmag 15y agoWhat would it take to get it to be as smart as, say, Intellisense?
- digispaghetti 15y agohttps://github.com/Kronuz/SublimeCodeIntel https://github.com/Kronuz/SublimeCodeIntel
- veidr 15y agoWell, that would really take a lot of work, to make it good. There's some commented-out logic in the 'official' Cappuccino plugin for ST, that takes into account the scope and then works backwards to try to figure out what type of object you are messaging. https://github.com/aparajita/Cappuccino-Sublime https://github.com/aparajita/Cappuccino-Sublime But I think the reason that's commented out is that it is easy to get some parts working, but to do it right you need to analyze the whole code base, with a real parser, be able to follow the map of import/include statements back to know what code elements are actually available in the current scope, etc etc. And that's a lot of work. Still, there's a lot of value in doing a good job with a simpler kind of completion -- and it is way easier, as long as the editor is extensible to the extent that ST is.
- dflock 15y agoAnyone using this editor should install this plugin first: http://wbond.net/sublime_packages/package_control http://wbond.net/sublime_packages/package_control It's fantastic and gives you a simple in-editor way to add/remove other plugins, direct from their github repos, without needing to leave or restart the editor. It also automatically keeps them all up to date. Once it's installed, you can just use the command palette (ctrl+shift+p) to install any of these plugins: http://wbond.net/sublime_packages/community http://wbond.net/sublime_packages/community, plus any others that you add via their github repo.
- timc3 15y agoTotally agree, Sublime really comes together when using some plugins and with this plugin it really makes the process of installing / trying or using / updating and removing very simple.
- bobwaycott 15y agoI'd also recommend immediately installing SublimeCodeIntel and SublimeLinter. These plus autocomplete have made ST2 the best editor I've used in 10+ years. And the latest beta is even faster than before.
- Hovertruck 15y agoCodeIntel never fails to make ST2 crash for me. :(
- freewizard 15y agoI feel SublimeClang is a must have for C/C++/ObjC developers
- Dachande663 15y agoAll it's missing now is a better icon; preferably not another blue one. Normally end up with this one (blue I know). http://www.designkode.com/blog/sublime-text-icon http://www.designkode.com/blog/sublime-text-icon
- fullmoon 15y agoThis guy has to be on caffeine, modafinil, and love for his product. Incredible velocity here.
- rd108 15y agoIs it... really just one guy doing the core dev work? (nonwithstanding plugins and so forth)
- stevecooperorg 15y agoYeah, it's one guy called Jon. He's been really responsive when I've talked to him.
- rd108 15y agoThat is amazing! I'm impressed....
- rmccue 15y ago> If you’re feeling adventurous, you may want to enable the auto_complete_commit_on_tab file setting: This will make tab accept the current completion, and enter operate as normal. I've had this on for about a week now, and although it was initially very disorienting, it's very easy to get used to it. I'd certainly recommend it, since it allows you to add a new line even if a suggestion is there.
- Brajeshwar 15y agoIs this just me but no-one seem to talk about it. How can I get the Sidebar to have a similar color scheme with my main theme? I like the default Monokai but the Sidebar is light. The Soda theme & Color Scheme was nice but the new UI improvement in the IDE is so good to sacrifice it for Soda.
- bmj 15y agoIs this controlled by the color scheme itself? I'm running Solarized Dark, and the sidebar does have the same scheme as the editing window.
- Brajeshwar 15y agoYes, this is part of the Color Scheme that you used.
- flyosity 15y agoTo change the sidebar color, you can go into the default Theme directory, find the new global theme file and update it manually. It's all JSON, so just search the file for "sidebar" and you should find the RGB string to play with.
- stevecooperorg 15y agoFavourite Option: When you close the editor, it just shuts down, saving all your buffers and restoring them when you reload. That means you can close the app, reboot your computer, whatever, and the edits you've been making aren't lost, and you aren't bugged for filenames. Definitely a 'why don't all apps work like this?' feature.
- macrael 15y agoThis is the default behavior of document based apps on OS X starting with Lion. For instance: TextEdit behaves this way.
- statictype 15y agoYeah, if you've been extensively using Lion for document editing, this may not seem like a big deal anymore, but in Sublime it works just as well on Windows too.
- stevecooperorg 15y agoYeah, It's new to me on Windows.
- deleted 15y ago[deleted]
- mixu 15y agoMy favorite feature: a dedication from the developer to fix bugs even on Linuxes they aren't personally running (Arch Linux in this case). http://www.sublimetext.com/forum/viewtopic.php?f=2&t=4473 http://www.sublimetext.com/forum/viewtopic.php?f=2&t=447...
- njs12345 15y agoNice debugging! Definitely worth a read.
- maalox 15y agoOnly at HN will you find people gushing about a $50 text editor. It's totally pathetic yet oddly endearing at the same time.
- michaels0620 15y agoActually, what's endearing (or outright cool) is that he has been able to create an editor good enough that people are willing to pay $50 for it. With lots of free alternatives and big players it isn't the easiest niche to break into. The fact that he's been able to do this primarily on his own makes it more impressive.
- veidr 15y agoI agree; it's cool. TextMate never impressed me too much, but I bought it one day when the author casually mentioned on MacSB that his order numbers were simply sequential (so order number X meant that X licenses had been sold). I was curious. My order number was something around 5000. So Odgaard had grossed $.25MM already. (At some point a couple years later I bought it again, and the order number was like 48000. It's no wonder he disappeared for years on end.) ST2 seems to be on that same trajectory. (And the grandparent comment is idiotic, of course; a truly good text editor repeatedly makes the news here just as a uniquely novel hammer would undoubtedly be a prominent theme on carpenternews.com.)
- ceejayoz 15y agoI spend about as much time using my text editor as I do my mattress, and no one looks funny at someone paying hundreds of dollars for one of those. The text editor took far longer to put together, too.
- GFischer 15y agoPeople also pay hundreds of dollars for text editors, if you include Microsoft Word among those. Edit: and Microsoft IDEs
- JonnieCache 15y agoJust so you know, these features have been available for weeks now in the dev builds. They get updated almost every day sometimes, the developer is an absolute machine. http://www.sublimetext.com/dev http://www.sublimetext.com/dev
- AGemmell 15y agoNew release looks great. One problem I have with ST2 is dragging tabs from one window to another window. The actual dragging of the tab works but if it's the last tab in the window and I remove it and put in another window, I'm left with a window with no tabs in it. Can this "empty" window automatically close please?
- shawndumas 15y ago"close_windows_when_empty": true,
- mise 15y agoI'm torn between using a nice proprietary editor like this, or a fine open source one like Scribes, or even going further into the command line world like Vim.
- sodiumphosphate 15y agoGood software is worth paying for. I hope the developer is able to live comfortably while working full time on his own endeavors, rather than relegate them to a hobby, and himself into wage slavery.
- mise 15y agoI can certainly agree with that.
- thepreacher 15y agoDoesn't the new auto complete and the plug-in SublimeCodeIntel do the same thing? One of my concerns is that say you are using a plug-in for a feature that is later implemented into Sublime, now you haven't read the what's new so you have no idea. What happens then?
- freewizard 15y agoNot the same. The editor itself supports almost all file types with basic auto-completion. SublimeCodeIntel supports a few scripting languages with more intelligence. SublimeClang doing same smart job for C/C++/ObjC. It's just based on your work pattern to decide which one to use. For me, all 3 of them are all very useful everyday.
- duck 15y agoIf you use vim be sure to check out the Ex mode package: https://github.com/SublimeText/VintageEx https://github.com/SublimeText/VintageEx
- statictype 15y agoVintage mode is a killer feature for people (like me) who are wired for Vim's modal editing. The fact that it works reasonably well (somes bugs here and there but it's an alpha so understandable) is what made me even consider Sublime in the first place. Now, after having been using Vim for about 8 years now, after a few weeks of trying Sublime, I'm pretty much ready to pony up for SublimeText 2 whenever the final version is released.
- duck 15y agoYeah, Vintage mode is really nice... but I just found this Ex package today as I didn't realize it existed. Without :s I was pretty lost in Sublime, but not now!
- blakeweb 15y agoUsing 'vip' to select the current paragraph didn't work for me on osx (instead it went into insert mode with the 'i'), so I gave up on my very brief trial. Did I give up too soon? Or is that oversight typical of other quirks I'll run into?
- statictype 15y agoCould be a bug - I looked at the Vintage source when it was in alpha - they had implemented text objects for many delimiters but I also found some bugs with , for example 'ci{'.
- g3orge 15y agoI don't want to put the looks over functionality but when we are talking for a GUI application we need a good icon.
- ChrisLTD 15y agoThere are some good replacements floating around the web. The one I think best matches the aesthetic of Sublime Text 2 is here: http://dribbble.com/shots/337996-Sublime-Text-2-Icon http://dribbble.com/shots/337996-Sublime-Text-2-Icon
- Deezul 15y agoI've recently started using Sublime Text 2 for iPhone development on Windows. Okay I admit, I've been doing it for a while. Rather strange setup perhaps, but with Synergy it's a fairly seamless workflow between my Macbook Pro and Windows desktop. I keep telling myself I'll get around to purchasing a license and this finally did it for me. I wouldn't say it's purely on guilt, more of a slowly growing relationship. Auto complete is an enormous help, why wouldn't I return the favor?
- octopus 15y agoJust curious, why are you using Windows for iPhone development ? I mean there is any advantage versus using directly your Mac ? Thanks.
- tommypalm 15y agoAnyone know how to get the Soda Theme working again?
- aroberge 15y agoIt needs to be installed under Packages not Packages/User. Look at the github source for Soda Theme for further explanation... (I just read that this morning).
- Simon_M 15y agoHow do people deal with remote files? I love Sublime, but always end up reverting back to VIM as it is so slow when accessing files over a network connection. I've tried the SFTP plug-in, but find it really clumsy. Ideally I'd just love to be able to add a remote folder over SFTP the same way you do local ones.
- adeelk 15y agoCopy the files to your computer, make the changes, and copy them back?
- leeoniya 15y agotry something like WebDrive, NetDrive, ExpanDrive or Dokan SSH http://dokan-dev.net/en/ http://dokan-dev.net/en/ they create a mapped drive to a location of your choosing and you edit files as if they were local. i stopped worrying about the remote editing functionality in editors since. before that i used winscp, which detects changes and re-uploads automatically, but it's not as convenient.
- jaylevitt 15y agoSee elsewhere my post about ExpanDrive and SSH tunnels..
- chbrown 15y agoMacfusion is sometimes finicky, but works for me most of the time. And it's free (unlike Expandrive).
- michaels0620 15y agoI've paid for Sublime Text and think it's awesome. I primarily do Scala development and would like to use ST for it but the one thing I miss are highlighting errors in the source. Does anyone know a way to do this? I searched the ST forums to no avail.
- Pewpewarrows 15y agoWhile this plugin doesn't have Scala by default, it does include a Java linter/checker. So you could theoretically fork and expand it to do Scala as well. https://github.com/Kronuz/SublimeLinter https://github.com/Kronuz/SublimeLinter
- somecanuck 15y agoHas the ability to navigate via UNC been added? Or more importantly, has search/replace with regular expressions improved? I did a search/replace of [a-z] to 0 in a 50 meg text file before as a comparison between Sublime Text 2, UltraEdit, and gVim. UltraEdit was slower than I would have liked, gVim was < 10 seconds, and Sublime crashed. That's a deal breaker.
- bionicbrian 15y agoSublime Text 2 is amazing. I bought it and used it for a bit. Even with vintage mode, I missed vim too much and switched back. I do wonder if the arrival of Sublime Text 2 was the impetus for TextMate 2 development after so many years.
- leeoniya 15y agoprimarily as a web dev, the only two things preventing me from switching from NP++ is the poor and non-customizable matching bracket styling. and the buggy html matching tag highlighting (and styling as well) once those get addressed more fully, i'm ready to cough up the cash.
- iusable 15y agoLove the auto-complete! Keep up the great work.
- octopus 15y agoA small bug with the auto-complete update when you edit a new C++ file (I've checked this only on Mac): When you start writing #in... Sublime will suggest you #include ... pressing Enter will actually double the pound sign. You end up with something like ##include .... I've noticed the same pattern for int m... the suggested completion was main(). Pressing Enter ends up repeating the return type of the main function, something like: int int main(int argc, char *argv[]) ... Maybe this a Mac only bug or it has something to do with the way the C++ syntax is parsed by the Auto-complete algorithm.
- jasonkester 15y agoIt makes me sad that the best tools available for writing code in so many otherwise exciting languages are still resorting to text-based autocompletion. And blogging about it as though it's something to be proud of. This is certainly a pretty editor. But at its heart, it's still a text editor. And what I do for a living is edit code. Code has a lot more information about it than text. I can imagine looking at a line such as: item.hide() in this editor, knowing that my codebase has half a dozen classes that expose a .hide member. I hesitate even to ctrl+click on it in this editor, because I know it'll either do nothing or take me to the wrong definition. In a perfect world (and in IDEs for statically typed languages since 1998), the editor would know exactly which .hide we were talking about. And it could gracefully send me there with a single click or keystroke. I'm still waiting for something equivalent to appear for the Ruby/Python/Javascript portion of my world. But years keep ticking by and the best we get is text editors that try to guess by looking at text. Maybe next year.
- ceol 15y agoAt least from my experience working in Python, if you don't know which instance `item` is, it's a problem with your code— not the editor. Automatically taking you to that class's method is another story, but I don't think you should depend on your IDE to figure out your logic for you.
- koenigdavidmj 15y agoWhat about parameters to functions? def spam(eggs): eggs.<TAB> Should autocompletion go find all callers of spam() and see what they are passing in in order to determine what should be available at that point?
- teraflop 15y agoWhy not? IntelliJ can do exactly that for Java code -- right-click on a variable and choose "dataflow to here". Even in large projects, it's practically instantaneous. Of course, in Java you don't need that much information for autocompletion since you can just look at the static types. The same kind of global dataflow analysis would have to be approximate in a dynamic language, but I'd still expect it to be better than nothing.
- tommyd 15y agoWow, this is seriously nice. Never heard of it before. Just today I've been trying out Netbeans as I'm a vim addict but my colleagues keep telling me how wonderful their IDEs are - Netbeans was much too heavyweight for my liking, but this looks like just the right balance between features and simplicity/speed. Loving the mini-map and package manager particularly. The vim emulation seems to cover most of the key ones I use too. Nice work!
- blakeweb 15y agoVim keybindings didn't work well for me. In command mode tried vip to select the current function definition and it instead went into insert mode with the i. To me that means it's probably got lots of other quirks. Do you just not use those types of visual mode operations? Or did it rather successfully handle this for you?
- 1880 15y agoI don't know if it's something wrong with my eyes, but with the new theme I get confused all the time searching for the active tab. Old theme had more contrast. Edit: installing Soda theme[1] solved it! [1]: https://github.com/buymeasoda/soda-theme/ https://github.com/buymeasoda/soda-theme/
- kellishaver 15y agoStill no block cursor. :( I've found/modified a little plug-in to simulate it, but it's not ideal. I love Sublime, and I'm sure it seems trivial to most folks, but as a developer with poor eyesight, this is the one feature I want the most. At least fonts can be larger now.
- oe 15y agoUsing the vintage mode without the block cursor is annoying. It's really hard to see when you are in command mode and when in insert. I'm using this block cursor plugin https://github.com/netpro2k/SublimeBlockCursor https://github.com/netpro2k/SublimeBlockCursor but it has some bugs where the cursor remains as a block until you write something.
- kellishaver 15y agoThis is actually what I'm using, though I've modified it some to work outside of vintage mode, which also seems to have eliminated most of the problem (I may have done more to it as well, I can't really remember now). The only time the "block" disappears now is when the cursor is at the end of the file, because there's no white space after it to highlight (which is logical).
- notlion 15y agoI love Sublime, but I'm not really a fan of the new theme. It tends to be lighter in areas where the previous version was dark, especially in the tab-bar when using a theme like SpaceCadet. Anyone know if it's possible to change the default tab background color for themes that don't support it?
- foobarbazetc 15y agoStill doesn't feel like a Mac app...
- cidermonk3y 15y agoI love the git package, superb. Managed to write a few custom commands to tweak things to suit my requirements, haven't tried that with any other editor / IDE :)
- cidermonk3y 15y agoDoes anyone know how to display edge lines? I usually pass files through Code Sniffer before committing, so generally i try to keep lines 120 characters or less, seeing where that 120th character is; is really helpful.
- sr3d 15y agoSplit-screen support is still very clunky. I don't understand why you need to define a new "group". Layout-wise it makes sense as preset layouts, but other than that the group doesn't help at all. The best split-screen implementation is E-Text Editor. In E, you can drag the tab to create a new split, then "Cmd T" in ANY tab will bring you to the previously opened file in the split. Basically I don't have to remember where the file is opened, as long as I know its name, I can just jump by typing the name. That is how quick jump should be. Also, you can arrange the windows by dragging-and-dropping to another split. I stop using E after version 1 because I made the switch Mac and I have to use Textmate, which does not support split-screen at all (what a shame!). And I miss E dearly. Currently Sublime Text quick jump is still bad, because it still requires a context switch (switch to the group that has the file opened, then Cmd T), or worse, complete loss of current context (Cmd T would open the file in current group, thus you lose the view of the current file you're working on). So as long as split-view doesn't get implemented properly, Sublime Text is still just another editor.