A flexible technique for writing phase-shifted Bragg gratings in one step is reported. The technique uses a phase plate which inserts a phase shift in a grating pattern regardless of its Bragg wavelength. Typical features of the gratings created by the technique are given.