Keyboard shortcuts for tech-savvy journalists, no matter if they write code or articles

Rebecca Lai watches me type every letter of a long file name — something like pythonreallylongfilename1234567.py — into Sublime. After the first couple letters, she cannot contain herself.

“TAB COMPLETE! TAB COMPLETE!”

If there's an apt analogy for the way Lai must feel when I forget to tab complete (keep reading if you're unfamiliar with the term) as she helps debug my code, it must be something like this: you're watching over your mother’s shoulder as she begins to Google something. She moves her mouse over to the search box. She clicks in the box to make sure, yes, the cursor is blinking there. She types in a search term. She moves her mouse over to the “search” button. Then, finally, she clicks. Sweet release.

Why? Why would you do that?

Because she doesn't know any better. And sometimes neither do I.

Some bits of wisdom are learned out of necessity, like when you've pored over your Macbook keyboard only to realize there’s no PrtScn key like you’d find on a PC ( + + 3 or 4, if you want just a selection of the screen). Others are barked at you until you comply.

The thing with keyboard shortcuts is that sometimes, you don’t even think to figure out if one exists. Tab completion is a good example. Microsoft Word doesn’t let you tab to complete a word or phrase just because you’ve already established it in your header. But Sublime Text does; you'd just never know it unless someone told you.

Of all the keyboard shortcuts that exist, the ones below are what I’ve found to be the the most valuable, especially for someone constantly switching between editing articles and editing code.




















Shortcut Why you need it Works in
Tab Let the computer finish that string for you. Terminal, Sublime
+ / Is this the offending bit of code? Or this? Comment out all the lines at once. Sublime
To avoid rewriting the command you just wrote, use the up arrow. Keep pressing up to bring up even older commands you wrote. Terminal
+ C You’re probably thinking “duh, everyone know how to copy text.” You might be pleased to know, however, that if you don’t have text highlighted, this shortcut will copy the current line your cursor is on. Sublime
+ X If you don’t have any text highlighted, this shortcut will cut the current line your cursor is on. Sublime
+ D Select the current word your cursor is on. Sublime, word processors
Option + / Move cursor to beginning or end of word. Sublime, word processors
+ / Move cursor to beginning or end of current line. Sublime, word processors
Alt + Shift + / Select text a word at a time. Sublime, word processors
Shift + / Select text a character at a time. Sublime, word processors
+ Shift + / Select text from current cursor position to beginning or end of current line. Sublime, word processors
+ Shift + / Select text from current cursor position to beginning or end of document. Sublime, word processors
Esc + B / F Move cursor from argument to argument. Terminal
Control + A / E Move cursor to beginning or end of command. Terminal
Control  + U Clear line. Terminal
Control + W Delete word before cursor. Terminal

Keyboard shortcuts longer than two keys at a time have taken me a little more practice than others to program into the brain hardware. But as numerous journo-hackers have told me, they always appreciate a savvy individual who knows his or her away around a computer, and that includes being able to navigate text editors without relying on clicks. Plus, I welcome anything that saves me from the awkward moments of silence between a mentor and me as I struggle through demonstrating broken code.

Have a few tricks of your own? Share them in the comments.

About the author

Suyeon Son

Undergraduate Fellow

Latest Posts

  • A Big Change That Will Probably Affect Your Storymaps

    A big change is coming to StoryMapJS, and it will affect many, if not most existing storymaps. When making a storymap, one way to set a style and tone for your project is to set the "map type," also known as the "basemap." When we launched StoryMapJS, it included options for a few basemaps created by Stamen Design. These included the "watercolor" style, as well as the default style for new storymaps, "Toner Lite." Stamen...

    Continue Reading

  • Introducing AmyJo Brown, Knight Lab Professional Fellow

    AmyJo Brown, a veteran journalist passionate about supporting and reshaping local political journalism and who it engages, has joined the Knight Lab as a 2022-2023 professional fellow. Her focus is on building The Public Ledger, a data tool structured from local campaign finance data that is designed to track connections and make local political relationships – and their influence – more visible. “Campaign finance data has more stories to tell – if we follow the...

    Continue Reading

  • Interactive Entertainment: How UX Design Shapes Streaming Platforms

    As streaming develops into the latest age of entertainment, how are interfaces and layouts being designed to prioritize user experience and accessibility? The Covid-19 pandemic accelerated streaming services becoming the dominant form of entertainment. There are a handful of new platforms, each with thousands of hours of content, but not much change or differentiation in the user journeys. For the most part, everywhere from Netflix to illegal streaming platforms use similar video streaming UX standards, and...

    Continue Reading

  • Innovation with collaborationExperimenting with AI and investigative journalism in the Americas.

    Lee este artículo en español. How might we use AI technologies to innovate newsgathering and investigative reporting techniques? This was the question we posed to a group of seven newsrooms in Latin America and the US as part of the Americas Cohort during the 2021 JournalismAI Collab Challenges. The Collab is an initiative that brings together media organizations to experiment with AI technologies and journalism. This year,  JournalismAI, a project of Polis, the journalism think-tank at...

    Continue Reading

  • Innovación con colaboraciónCuando el periodismo de investigación experimenta con inteligencia artificial.

    Read this article in English. ¿Cómo podemos usar la inteligencia artificial para innovar las técnicas de reporteo y de periodismo de investigación? Esta es la pregunta que convocó a un grupo de siete organizaciones periodísticas en América Latina y Estados Unidos, el grupo de las Américas del 2021 JournalismAI Collab Challenges. Esta iniciativa de colaboración reúne a medios para experimentar con inteligencia artificial y periodismo. Este año, JournalismAI, un proyecto de Polis, la think-tank de periodismo...

    Continue Reading

  • AI, Automation, and Newsrooms: Finding Fitting Tools for Your Organization

    If you’d like to use technology to make your newsroom more efficient, you’ve come to the right place. Tools exist that can help you find news, manage your work in progress, and distribute your content more effectively than ever before, and we’re here to help you find the ones that are right for you. As part of the Knight Foundation’s AI for Local News program, we worked with the Associated Press to interview dozens of......

    Continue Reading

Storytelling Tools

We build easy-to-use tools that can help you tell better stories.

View More