Abstract The morphological design of urban space affects the quality of the environment. The traditional experience-based design approach was greatly improved by introducing computational design tools. However, the existing urban design tools are mostly developed on pre-set rules or given targets, which have few contributions to enhance creativity or generate inspiring schemes. Therefore, this paper proposes a new computational urban design approach named UDGAN, integrating generative adversarial networks (GANs) and multi-objective optimization algorithms. This model utilizes urban design scheme plans over the past 20 years from a particular designer as training datasets. Four preference models were trained to autonomously generate stylized urban design schemes. Eight morphological parameters were used to analyze the model performance by comparing generated results with the ground truth. This GAN-based surrogate approach is combined with a morphological indicator alignment process using multi-objective optimization model to obtain better results. The result shows that the R2 predicted by the improved Pix2Pix model reaches 0.798, and the similarity of the generated results can be stably distributed between 0.7 and 0.8, so the design scheme of this preferred style can be effectively learned. At the same time, the pre-trained model greatly reduces the time consumption of the design scheme generation, taking 5 min approximately to complete a generation process. This approach quickly generated the design scheme with preferred features, supporting the designer with creativity and greatly saving the time of design creation, transforming computational design into an inspiration-driven process.