This topic takes the course of "Mechanical Design" as an example, analyzes the key points of current ideological and political content and the quality objectives of talent training program, and selects three types of ideological and political education content that can be carried out in the course of "Mechanical Design", such as "Craftsman Spirit" and relevant knowledge points that can be cut into the ideological and political content in the specialized course, selects the "South-pointing Cart", "Little-assistant" and other appropriate ideological and political education cases and a variety of mixed teaching methods such as" Flipped Class", forms a set of teaching mode suitable for the course of "Mechanical Design" to carry out the ideological and political education. It can provide reference for the smooth and effective development of ideological and political education in other similar specialized courses, and improve the effect of students' ideological and political education, which is an effective supplement to the teaching of ideological and political class, and help to achieve the goal of ideological and political education of all staff.