587 – New Line please

clip_image002Lots of terms in computing have their roots in an earlier time, where the association has long since disappeared. The mouse was so called because of its “tail” connecting it to the machine; when was the last time you used a wired mouse? Then there’s the apocryphal story of a young person, on first encountering a 3.5” floppy disk (er, not so floppy any more) thinking that someone had 3D printed the save icon.

As well as the QWERTY keyboard layout, a few things were carried over to the modern computer from the typewriter – the backspace and tab keys and the carriage return key. Purely mechanical typewriters had an end-of-clip_image004line lever, which caused the paper to feed one line and the whole mechanism of the roller to shoot back to start a new line. Electric typewriters had the innovation of not requiring the dings and the manual whirrs, by pressing the RETURN key to automate the carriage – the symbol still displayed on most computer keyboards today is indicative of the physical action.

Early computer systems aped the same approach of the line feed (ie the paper being shuffled up one line) and the carriage return (going back to the left side), as being separate activities and they were given specific control codes – so CR, LF and CR+LF are still things. For some time, consternation still applied as Windows considered that CR + LF needed to be noted to really start a new line, whereas the Unix fraternity simply thought that LF was all you needed. It is possible to hack the registry so Notepad acts Unixsy should you need it to.

In most applications, if you want to start a new line, you’d just press Return or Enter (in effect, the same thing, though not always the case). Pedants would say that ENTER doesn’t mean you necessarily need a new line, you’re just committing some data you’ve typed, redolent of the old terminal where you might be submitting a form rather than typing in free text.

Applications perform sometimes completely different actions when you press a modifier key like CTRL or ALT, and ENTER. In Word, CTRL+ENTER starts a new page, ALT+ENTER repeats the last typing action. In Outlook, CTRL+ENTER sends the current email and ALT+ENTER – like the same keystroke normally does when looking at a file in Windows Explorer – shows the properties of the current message.

In Excel, CTRL+ENTER has some other meanings, notably it completes the entry of data into a cell, without moving the selection to the next cell along or to the line below (depending on config). SHIFT+CTRL+ENTER can be used to create a powerful but quite complex array formula. ALT+ENTER also has a useful trick for formatting text in-cell, alongside some tips to control cell text formatting.

clip_image006Firstly, wrap text where it makes sense – so clip_image008to stop it spilling into the next column and getting over-written by whatever text is or may be added in there.

clip_image010Sometimes, however, the layout doesn’t quite sit right unless you resize the column, and that might not be ideal. If typing in new text into a cell, you can force a new-line within the box by pressing ALT+ENTER. For existing text in a cell, one solution to put a new line in is to double-click in the cell, which will insert a flashing text cursor and you edit text directly in the cell rather than the formula bar text box at the top of the sheet. Move the cursor using the arrow keys clip_image012and/or by clicking the mouse elsewhere in the text; press ALT+ENTER  to force a new line in the box.
Much neater.

Another way of editing text in an existing cell; select it and the text will be displayed in the formula bar, but only the first line, unless you have the formula bar expanded out, by clicking the down-arrow on the right.

clip_image014If you show it as a multi-line view, it may be easier to click within that box to edit the text, move the cursor around and hit the ALT+ENTER shortcut to force a new line.