Answer: Earwigs like hiding in cool, damp places and this preference for damp shade makes them easy to trap. A piece of hose, bamboo, or even rolled newspaper laid in the shade will attract them, and then you can do away with them by drowning or squashing them. To protect seedlings, surround them with a sticky barrier, such as cardboard coated with petroleum jelly; if the critters try to scale it, they'll get stuck. If you don't have time for these procedures, diatomaceous earth lightly sprinkled on the plants, and more liberally spread on the soil between the plants, will discourage them as well, as the particles are razor-sharp to insects.
Q&A Library Searching Tips