How to code

Assigning codes to segments of texts or images in MAXQDA is known as “coding.”

A document or document segment can be coded with as many codes as you want. There is practically no limit to the number of codes that you can create and assign. Coded segments can also overlap, intersect, or be completely contained within other coded segments.

Select the Segment to be Coded

The action of coding can be done in many different ways, but you must always start by highlighting a section of a text or a picture to be coded in the Document Browser.” An example of highlighted text within the “Document Browser” is shown below:

A highlighted segment of text
Note: The smallest segment of text that can be coded is a single character. In most cases, you would want to code at least an entire word. The “Code” toolbar is especially helpful when going through the coding process. If it is not currently visible, you can activate it by clicking on it in the View drop-down menu.
The “Code” toolbar

In PDF files, both text and image segments can be coded:

Highlighted text (above) and highlighted image segment (below) in a PDF

Different Ways to Code

MAXQDA offers several ways to code segments:

  1. Classic coding using Drag & Drop: A selected text segment or image segment can be dragged and dropped into a code (or vice versa) using the mouse.
  2. Classic coding using context menu: A selected text segment or image segment can be coded by using the context menu in the “Document Browser” window.
  3. Coding with newly defined (free) codes: As in Grounded Theory, a segment can be assigned a new (free) code.
  4. In-Vivo coding: Select and highlight meaningful terms in the texts and automatically add them as codes in your code system while coding the text segment with the code.
  5. Coding with selected codes from the Quick List: Documents are targeted based on the occurrence of one or more pre-selected codes, and coded where applicable.
  6. Simultaneous coding with multiple codes: A segment is coded with the activated codes.
  7. Highlight coding: This works like highlighting a text passage in a book with a colored text marker. In MAXQDA, five different colors can be used for color coding: red, green, yellow, blue or magenta.
  8. Coding with MAXMaps: Selected segments are dragged to codes on a map.
  9. Coding with code favorites: Selected codes are displayed in a separate window, from which they can be easily applied to segments to be coded.
  10. Coding with self-defined keyboard shortcuts: Up to nine codes can be assigned their own keyboard shortcut, which can be used to quickly code a marked segment.
  11. Coding with symbols and emoticons: Selected segments are coded with emoticodes, i.e. an emoticon or a symbol.
Note on coding: Regardless of the function selected, MAXQDA ensures that the same code is not assigned more than once to the same passage. The overlapping of segments with the same code is not possible. When segment size is modified – made larger or smaller – and coded with the same code, MAXQDA will automatically correct the segment size to correspond to the new selection.

The following section describes in detail how these techniques are used. The different options can be chosen from the context menu that pops up when you select a document segment and click the right mouse button.

1. Classic Coding Using Drag & Drop

Left-click and hold on the selected text and move the mouse pointer to the name of the code in the “Code System.” Release the mouse button to assign the segment to this code, as you can see in the gray column next to the document in the “Document Browser” window. The reverse also works, i.e. you can drag the code to the selected document segment.

Tip 1: The same segment can be assigned multiple codes in a row.
Tip 2: You can highlight and drag a text segment in the upper preview part of the “Overview of coded segments” window, too.

2. Classic Coding Using the Context Menu in the “Code System”

Right-click on the code in the “Code System” that you would like to use to code the highlighted document segment in the “Document Browser.” Select Code highlighted segment from the context menu.

Using the context menu in the “Code System”

3. Coding with newly defined codes

An easy way to create a new code, i.e. a code that is not yet listed in the “Code System,” is to use the shortcut Ctrl+W (Windows) or cmd+Alt+W (Mac). A dialog window will open, and you can type in the name of the new code. The code will be added to the “Code System” at the highest level of the hierarchy. If necessary, you can later move the code to another level in the “Code System.”

4. Coding In-vivo

Another way of coding is with the so-called in-vivo coding. If you, for example, select the word “global village” and then click on the in-vivo coding button in the toolbar, the word “global village” is added to the “Code System” as the code for this short text segment. The shortcut Ctrl+I (Windows) or cmd+Alt+I (Mac) has the same effect.

Coding with the Quick List or the in-vivo button

When you want to code a whole segment of text with the in-vivo coding function, and not only one or two words, code the one or two words with this function first. Next, select the entire text segment (including the word) and click Code highlighted segment (not the in-vivo coding button!). MAXQDA expands the coded segment automatically.

Note: Other coding methods including color-coding, MAXMaps, code favorites and emoticodes are explained in separate sections.

5. Focused Coding with the Quick List Coding Button

The “Code” toolbar provides quick access to frequently used coding functions. The “Quick List” is located on the toolbar to the right of the Edit button. Whenever you click on a code in the Code System, or when coding is in process, the corresponding code appears at the top of the Quick List. Click on the Coding  button immediately to the right of the Quick List button to assign the code in the window to the selected segment. In this way, multiple areas of a document can be coded without having to select the code each time.

You can also use the keyboard shortcut Ctrl+C (Windows) or cmd+Alt+C (Mac).

6. Coding with Multiple Codes Simultaneously

First, activate the codes in the “Code System” that you want to use to code the selected segment in the “Document Browser.” Then right-click on the segment and choose the option Code with activated codes.

Note: The other coding options including highlight coding, MAXMaps, code favorites, keyboard shortcuts and emoticodes are discussed in separate sections.

Was this article helpful?