Repository navigation
Drawing
The canvas opens when a drawing is active: the tool rail on the left, the page in the middle, the Analysis panel on the right when it is open. Every gesture, hover key or command is one undo step (Ctrl+Z, Ctrl+Shift+Z or Ctrl+Y; Cmd on macOS).
Press a tool's key with the pointer away from atoms and bonds, or click it on the rail. Shift with the key steps to the next tool of that group; a rail button that holds more than one tool opens its flyout when held or right-clicked.
| Key | Group | Tools | What a click or drag does |
|---|---|---|---|
V |
Selection | Select, Lasso (L) |
Click to select, drag on empty paper for a marquee (the lasso draws a free shape). Drag a selection to move it (Shift keeps it level or upright); drag one atom to reshape, dropping it on another atom merges them. The round handle above a selection rotates it in 15 degree steps (Shift for free rotation). The four square handles at the corners of a selection that holds a structure scale it on the sheet (Alt about the centre, Shift in 10 percent steps; see Grid and Page). Arrow keys nudge by 1 pt, Shift 10 pt, Alt 0.1 pt. |
B |
Bonds | Single, double, triple, wedge, hashed wedge, wavy, bold, dashed, dative, aromatic | Click empty paper for a new bond, click an atom to grow a bond from it at a good angle, drag from an atom to aim it, click a bond to change it to the tool's kind. |
C |
Chain | Chain | Drag from an atom or empty paper to draw a zig-zag chain; a note shows the carbon count, and typing digits during the drag sets it. |
R |
Rings | Benzene, cyclopropane to cyclooctane | Click empty paper for a free ring, click a bond to fuse a ring onto it, click an atom for a spiro ring (Alt-click attaches the ring through a new bond). |
A |
Atom Label | Atom label | Click an atom to type its label (elements, charges, abbreviations such as OMe or CO2H). |
T |
Text | Text | Click to type a text block. |
E |
Eraser | Eraser | Click or drag across atoms, bonds and objects to remove them. |
H |
Hand | Hand | Drag to pan (holding Space pans with any tool). |
Z |
Zoom | Zoom | Click to zoom in at the point, Alt-click to zoom out. Ctrl with the wheel zooms anywhere; View has Zoom In (Ctrl+=), Zoom Out (Ctrl+-), Zoom to Fit (Ctrl+0) and Actual Size (Ctrl+1). |
W P K G O
|
Arrows, Symbols, Brackets, Shapes, Orbitals | and Table, TLC, Image, Caption (in Text) | The annotation tools of 0.5.0; see Annotations. Reaction arrows and plus signs make a scheme FormChem can read; see Reactions. |
Right-click an atom, a bond or the paper for its context menu; from 0.6.0 the atom and bond menus also hold Atom Query, Enhanced Stereo, Query Bond and Define R-Group, and a selection of several atoms Contract Abbreviation. Structure has Clean Up Structure, Lay Out Structure, the abbreviation and explicit hydrogen commands, Assign Wedges, the Enhanced Stereo and Query submenus, Check Structure, Standardise... (from 0.7.0: salts, charges, functional groups and tautomers, with a preview), Compute Properties and the flips (see Stereo and Queries and Analysis); Arrange has the stacking order, align, distribute, Rotate 90 Degrees, Group and Ungroup, and from 0.7.0 Scale..., Scale Up 10% (Ctrl+Alt+=), Scale Down 10% (Ctrl+Alt+-) and Scale Labels and Text with Structures; Edit has Cut, Copy and Paste for the drawing (Ctrl+X, Ctrl+C, Ctrl+V), Copy As (SMILES, CXSMILES, Molfile, InChI, InChIKey, SMARTS, SVG, PNG, CDXML), Paste Special... (Ctrl+Shift+V), Duplicate (Ctrl+D), Delete, Select All (Ctrl+A), Find and Find Substructure (see Clipboard). With the selection tool, a selected arrow, line or box shows handles to reshape it.
Structures inserted from SMILES, files opened without 2D coordinates, Lay Out Structure and Clean Up Structure all go through the engine's 2D layout. From 0.7.0 it tries several layouts, scores each for atoms and labels that touch and bonds that cross, keeps the clearest (the familiar CoordGen layout unless another is clearly better) and then swings crowded substituents apart without changing any stereo or double bond geometry. Taxol, erythromycin and vancomycin now insert with no touching labels. Clean Up keeps the result as close as it can to what you drew. Bridged polycycles such as morphine can still show a bond crossing a ring, because only substituents are moved.
View > Grid picks lines, dots, crosses, isometric or hexagonal grids and Grid Settings..., and Snap to Grid puts new bonds, chains, rings and objects on grid points (hold Alt to place freely); on an isometric or hexagonal grid at the bond length every atom of a chain or a six-membered ring lands on a point. View > Dark Page shows the page dark, which is the default. Both are on Grid and Page.
Point at an atom or a bond (no click) and press a key. It works with the selection and every drawing tool, and each key is one undo step. This table is HOVER_KEY_MAP in frontend/src/canvas/tools/hotkeys.ts.
| On | Keys | Does |
|---|---|---|
| atom |
C N O S P F I H B K
|
set that element |
| atom | L |
chlorine |
| atom | Shift+B |
bromine |
| atom | R |
generic R group |
| atom |
A Q X M
|
query any atom, heteroatom, halogen, metal |
| atom | D |
deuterium |
| atom | a letter, then another within 600 ms | two-letter element (N A = Na, C L = Cl, S I = Si, B R = Br) |
| atom |
1 to 9
|
attach a zig-zag carbon chain of that many atoms |
| atom |
Shift+3 to Shift+8
|
attach a saturated ring through a new bond |
| atom |
Alt+Shift+3 to Alt+Shift+8
|
spiro ring at the atom |
| atom | Alt+B |
attach phenyl |
| atom |
+ -
|
formal charge up or down by 1 |
| atom | . |
toggle a radical dot |
| atom | : |
add a lone pair (cycles 0 to 4) |
| atom | Enter |
type a label |
| atom | Space |
revert to implicit carbon |
| atom |
Delete Backspace
|
delete the atom and its bonds |
| bond |
1 2 3
|
single, double, triple |
| bond | 4 |
aromatic |
| bond | 0 |
query any bond |
| bond | W |
solid wedge, again reverses |
| bond | H |
hashed wedge, again reverses |
| bond | Y |
wavy |
| bond | B |
toggle bold |
| bond | D |
toggle dashed |
| bond |
C L R
|
double bond centred, left, right |
| bond | F |
bring to front at crossings |
| bond |
Shift+3 to Shift+8
|
fuse a saturated ring of that size |
| bond | Shift+B |
fuse a benzene ring |
| bond |
Delete Backspace
|
delete the bond and any bare carbon left alone |
While the pointer rests on an atom or a bond, its hover keys win over the tool keys of the same letter.
- Move focus to the canvas (
Tabfrom the rail, or click it once). - Press
Enter. The keyboard cursor (a highlight the screen reader announces) lands on the first atom in reading order; on an empty pageEnterfirst places a carbon in the middle of the view. - Arrow keys move the cursor along bonds to the neighbouring atom in that direction;
Ctrlwith an arrow puts it on the bond instead.TabandShift+Tabjump to the next or previous structure. - To add a bond, press
Enteron an atom, then an arrow key: a carbon is added in that direction at the drawing's bond length and angle (joining an atom already there), and the cursor moves to it. - Every hover key works on the atom or bond under the cursor:
Ofor oxygen,2for a double bond,Shift+6for a ring,4for a chain of four,Enterthen typing for a label. - The context-menu key or
Shift+F10opens the menu of the atom or bond under the cursor.Escapeleaves the cursor.
Structures can also come in without drawing: Insert > Structure from SMILES, Insert > Template... (206 rings, heterocycles, amino acids, sugars, nucleotides, protecting groups, reagents and glassware), Reaction > Insert Reaction from Clipboard, Paste of any structure text, File > Open for molfile, SDF, RXN, RD, SMILES, CXSMILES, SMARTS, InChI, CML, CDXML and CDX files and pictures FormChem exported (reactions open as drawn schemes), or File > Import... to add a file's contents to the open drawing. See Formats and Export.
New drawings start from the default style chosen in Preferences > Drawing (Journal standard (1996), Journal variant B, Large screen or New document) with the bond length, line width, bold width and label size set there on top; choosing a style fills those numbers in from it. Preferences > Drawing and Chemistry also switch element colours, carbon labels, aromatic circles, valence warnings and stereo labels for the view. The View menu has Show Stereochemistry (CIP labels), Show Enhanced Stereo Groups (abs, and1, or1 under the labels) and Show Query Features (the purple query tags); the last two are choices of this window, not of the drawing, as are View > Dark Page and Show Grid.
FormChem
- Home
- Manual
- Getting Started
- Drawing
- Grid and Page
- Annotations
- Reactions
- Templates
- Printing and pages
- Keyboard Shortcuts
- Stereo and Queries
- Analysis
- Names
- Spectra and NMR
- 3D
- Databases
- Lab Notebook
- Biopolymers
- Live Structures
- Accessibility
- Formats and Export
- Clipboard
- Command Line
- Agents
- Agent Activity
- Terminal
- Extensions
- Project Format
- Architecture
- Desktop
- Troubleshooting
- Development
- Releasing
Documents