Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

is there a keyboard shortcut for inserting a new line above the current line? Kind of the opposite of cmd+return

Thanks!

share|improve this question
    
Okay, I just found out that optional+cmd+return should be able to do it. And indeed, I can achieve what I wanted in every file extension except for files that end in .js.coffee, in which case, it inserts a ";" and adds a new line below... –  Nik Mar 21 '12 at 23:46
add comment

1 Answer

up vote 2 down vote accepted

Yep, that macro is part of the Source bundle and is only active within the following scopes:

source.ruby | source.ocaml | source.fsharp | source.python | source.haskell | text.html

Not sure why that is since it's widely applicable to many different bundles. Of course you can always open the bundle editor (Ctrl-Opt-Command b), go to the Source bundle, find the macro called "Move to BOL and Insert LF" and remove the scope selector or change it to something like:

source | text

If you also want it to do the same thing in .coffee.js files, you can/should delete the macro in whatever bundle is active for those files (CoffeeScript?)

share|improve this answer
    
Hey Jay, I went with your first approach, I added "| source.coffee" and it now works!!Thanks! –  Nik Mar 23 '12 at 7:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.