Code prompting method and related device

A code and prompt content technology, applied in the field of programming, can solve problems that affect code writing efficiency, poor prompt content, and programmers cannot find it quickly and efficiently, and achieve the effect of improving writing efficiency

Pending Publication Date: 2021-02-05
杭州安恒信息安全技术有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, no matter which method is used above, there is a problem that the prompt content is poorly targeted. For example, when the letter a is entered, the editor will prompt all variables, functions, objects, etc. related to the letter a, and various types fixed priority
As a result, programmers cannot find what they need quickly and efficiently, which will greatly affect the efficiency of code writing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code prompting method and related device
  • Code prompting method and related device
  • Code prompting method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036]The core of this application is to provide a code prompt method, which can perform targeted code prompts and help improve code writing efficiency. Another core of the application is to provide a code prompt device, equipment, and computer-readable storage medium, all of which have the above technical effects.

[0037]In order to make the purpose, technical solutions and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be described clearly and completely in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.

[0038]Please refer tofigure 1 ,figure 1 This is a schematic flow diagr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a code prompting method. The method comprises the steps of analyzing a code document object written by a user to obtain a corresponding abstract syntax tree; obtaining a code prompt set according to the abstract syntax tree; by taking the code document object and the code prompt set as input of a trained neural network model, predicting the type of a code to be written by auser through the neural network model, screening prompt contents in the code prompt set according to a prediction result, and retaining the prompt contents corresponding to the prediction result; andsending the remaining prompt content in the screened code prompt set to a code editor, so that the code editor prompts the remaining prompt content in the code prompt set when the user newly writes the code. According to the method, code prompting can be carried out in a targeted mode, and the code writing efficiency can be improved. The invention further discloses a code prompting device and equipment and a computer readable storage medium which all have the above technical effects.

Description

Technical field[0001]This application relates to the field of programming technology, in particular to a code prompting method; it also relates to a code prompting device, equipment, and computer-readable storage medium.Background technique[0002]In the Internet age, the development of many industries, especially the IT industry, is closely related to the coding work of programmers. Prompting code during the coding process will undoubtedly help improve the efficiency of code writing. Currently, there are mainly two code prompting schemes as follows. One is that the local device analyzes local text and performs code prompting; the other is to build a language server, which analyzes the text and sends the prompt to the editor for code prompting. However, no matter which method is mentioned above, there is a problem that the prompt content is poorly targeted. For example, when the letter a is input, the editor will prompt all variables, functions, objects, etc. related to the letter a, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/33G06N3/04G06N3/08
CPCG06F8/33G06N3/08G06N3/045
Inventor 钱海洋赵铁辉
Owner 杭州安恒信息安全技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products