The invention provides an interactive code searching method based on structured embedding, which comprises the following steps: firstly, extracting a software storage library and a model corpus of a code-description matching pair from collected original data, then, carrying out word segmentation on the code storage library and the model corpus, then, constructing pre-trained structured embedding by adopting a preset tool, extracting high-quality model corpus and dividing the high-quality model corpus, then, constructing an interactive code search model NICS sequentially comprising a feature extraction module, an interactive attention extraction module and a similarity matching module, setting a hinge loss function of a training network, embedding and loading a pre-trained structured word into the interactive code search NICS model, training the NICS model, and finally predicting a to-be-processed query by utilizing the trained NICS model to obtain a code search result corresponding tothe query. According to the method, the code snippets can be effectively searched, and the most advanced performance is obtained in all benchmark tests.