Code prompting method and device

A code and code development technology, applied in the field of code prompts, can solve problems such as failure to provide prompts, no execution, and failure to meet the needs of novice users to solve problems, so as to reduce learning costs and improve code quality.

Active Publication Date: 2019-07-05
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Common code hints use grammatical rules to find hints containing code snippets and give them back to users when they input code snippets. This kind of hints cannot meet the needs of novice users to solve problems, because novice users usually write a statement, but it is not correct. execution, in which case the prior art cannot provide hints

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 device
  • Code prompting method and device
  • Code prompting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0033] The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0034] figure 1 It is a flowchart of a method for code prompting in an embodiment of the present invention, such as figure 1 As shown, the method of the present embodiment includes:

[0035] Step 11. Obtain all application programming interface API info...

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, which comprises the following steps of obtaining the API (application program interface) information of all application program programmatic interfacesfrom one or more specified code development knowledge bases, and storing the related abstract and link information; taking the keyword inputted by the users, the skip selected by the users and the searched links as input, calculating through an artificial intelligence algorithm, obtaining a corresponding relation among the keyword, the abstract and the link from the stored related abstract and link information, and generating the knowledge graph data; and packaging a knowledge graph data query method into a plug-in to be integrated into an integrated development environment, and after the integrated development environment receives a query keyword inputted by a user, enabling the plug-in to query the knowledge graph data according to the query keyword and feed back a query result to the user. The invention further discloses a code prompting device. According to the scheme, a code prompt can be more conveniently provided, a programmer is helped to reduce the learning cost, and meanwhile due to the fact that the adopted technologies are the same, the code quality can be improved.

Description

technical field [0001] The invention relates to the field of software development, in particular to a code prompt method and device. Background technique [0002] Nowadays, many IDEs (Integrated Development Environment, integrated development environment) can provide code prompts, and most of the ideas used are based on grammatical rules, that is, prompts are given when the input code segment is consistent with the rules. [0003] Common code hints use grammatical rules to find hints containing code snippets and give them back to users when they input code snippets. This kind of hints cannot meet the needs of novice users to solve problems, because novice users usually write a statement, but it is not correct. In this case, the prior art cannot provide prompts. Contents of the invention [0004] In order to solve the above-mentioned technical problems, the present invention provides a code prompt method and device, which can give code prompts more conveniently. [0005] ...

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/33G06F8/36
CPCG06F8/33G06F8/36
Inventor 王帅
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
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