Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Osmose
on July 15, 2012
|
parent
|
context
|
favorite
| on:
Some things beginners might not know about Sublime...
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.
fserb
on July 15, 2012
[–]
I normally do Cmd+N (Create an empty file) Cmd+S (save it). Isn't this sort of the same?
h0munculus
on July 15, 2012
|
parent
|
next
[–]
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.
jskinner
on July 15, 2012
|
root
|
parent
|
next
[–]
By default, the appropriate syntax highlighting will be set on the file the first time it gets saved.
Hovertruck
on July 15, 2012
|
root
|
parent
|
prev
|
next
[–]
CMD+Shift+P -> "JS" or "Py" or something sets the syntax highlighting.
Osmose
on July 15, 2012
|
parent
|
prev
[–]
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.
snprbob86
on July 15, 2012
|
root
|
parent
|
next
[–]
On OSX, press / or ~ to get a path text box with tab completion.
Hovertruck
on July 15, 2012
|
root
|
parent
|
next
[–]
I've always pressed CMD+Shift+G for that. Nice to know there's an easier way.
swah
on July 16, 2012
|
root
|
parent
|
prev
[–]
Only when you save...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I eventually had to get an extension and modify it to replicate emacs' c-x c-f to create files.