Live data from Hacker News

Some things beginners might not know about Sublime Text

blog.alainmeier.com

51–60 of 116 posts

Re: Some things beginners might not know about Sublime Text

#52
post #46
post #44

Earlier quoted context omitted.

I normally do Cmd+N (Create an empty file) Cmd+S (save it). Isn't this sort of the same?

That uses the OS file dialog, which is far too slow for my taste, although I've never actually checked to see what kind've shortcuts there are for it.

On OSX, press / or ~ to get a path text box with tab completion.

Re: Some things beginners might not know about Sublime Text

#53
post #42

Despite ST2 is great and everyday there is a new surprising feature to detect - what is the shortcut for 'save all'?

First, search google for "sublimetext save all." You should then get this website http://www.sublimetext.com/docs/commands.

Now, create a new user defined bind for that command (you can google how to do this). Or you could use Ctrl+Shift+P+"save".

Re: Some things beginners might not know about Sublime Text

#54
post #44
post #34

Cmd-P is useful for opening existing files, but what's the preferred way for creating them? I eventually had to get an extension and modify it to replicate emacs' c-x c-f to create files.

I normally do Cmd+N (Create an empty file) Cmd+S (save it). Isn't this sort of the same?

But then syntax highlighting is off until you close and reload it, which is annoying. I usually have a terminal open to the project anyway so I just use 'touch' to create the file I want.

Re: Some things beginners might not know about Sublime Text

#55
post #46

Earlier quoted context omitted.

That uses the OS file dialog, which is far too slow for my taste, although I've never actually checked to see what kind've shortcuts there are for it.

On OSX, press / or ~ to get a path text box with tab completion.

I've always pressed CMD+Shift+G for that. Nice to know there's an easier way.

Re: Some things beginners might not know about Sublime Text

#56
post #44

Earlier quoted context omitted.

I normally do Cmd+N (Create an empty file) Cmd+S (save it). Isn't this sort of the same?

But then syntax highlighting is off until you close and reload it, which is annoying. I usually have a terminal open to the project anyway so I just use 'touch' to create the file I want.

CMD+Shift+P -> "JS" or "Py" or something sets the syntax highlighting.

Re: Some things beginners might not know about Sublime Text

#57
post #42

Despite ST2 is great and everyday there is a new surprising feature to detect - what is the shortcut for 'save all'?

Not the same, but I have the save_on_focus_lost setting set to true, so when I switch out of ST2 – likely to Chrome with LiveReload on – everything gets saved and I see my changes immediately.

Re: Some things beginners might not know about Sublime Text

#58
post #33
post #32

Still doesn't seem to have 'correct indentation' which I would use often, especially for 'data' files like XML or JSON.

This is probably obvious for most people, but when you can't find a feature you want in an editor, you should look for plugins. So, in this case, you would go to http://wbond.net/sublime_packages/community and search for "indent" or "pretty" or "xml".

Obviously you didn't actually try what you suggested, if you had you'd have found there are plugins for JSON and XML and probably a few other formats, but was hoping ST2 would have what textmate and eclipse has had for a long time, code formatting, java, XML, xsl, JavaScript, c etc.

I know you're new here, but a little reminder about etiquette, even if you haven't gotten laid in a while, the community here is based on people being helpful rather than trying to be superior. The problem with that attitude is that it backfires and just makes you look insecure.

Re: Some things beginners might not know about Sublime Text

#59
post #58
post #33

Earlier quoted context omitted.

This is probably obvious for most people, but when you can't find a feature you want in an editor, you should look for plugins. So, in this case, you would go to http://wbond.net/sublime_packages/community and search for "indent" or "pretty" or "xml".

Obviously you didn't actually try what you suggested, if you had you'd have found there are plugins for JSON and XML and probably a few other formats, but was hoping ST2 would have what textmate and eclipse has had for a long time, code formatting, java, XML, xsl, JavaScript, c etc. I know you're new here, but a little reminder about etiquette, even if you haven't gotten laid in a while, the community here is based o…

Sorry? My response was tailored for your comment -- you didn't mention plugins and you weren't (and still aren't) clear on the features you're missing. I.e., from your comment I inferred that you are new to all this, and so I treated you as a newcomer. I guess that hurt you feelings? If so, I didn't mean to :)

Re: Some things beginners might not know about Sublime Text

#60
post #58
post #33

Earlier quoted context omitted.

This is probably obvious for most people, but when you can't find a feature you want in an editor, you should look for plugins. So, in this case, you would go to http://wbond.net/sublime_packages/community and search for "indent" or "pretty" or "xml".

Obviously you didn't actually try what you suggested, if you had you'd have found there are plugins for JSON and XML and probably a few other formats, but was hoping ST2 would have what textmate and eclipse has had for a long time, code formatting, java, XML, xsl, JavaScript, c etc. I know you're new here, but a little reminder about etiquette, even if you haven't gotten laid in a while, the community here is based o…

> the community here is based on people being helpful rather than trying to be superior

> even if you haven't gotten laid in a while

> it backfires and just makes you look insecure.

what

Post reply on HN