Method and device for adding code snippets

A technology of code snippets and adding devices, applied in the field of data processing, can solve the problem of low efficiency of marked files, and achieve the effect of improving programming efficiency

Active Publication Date: 2018-02-02
BEIJING GRIDSUM TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to provide a method and device for adding code fragments, so as to solve the problem of low efficiency of adding markup class files for code fragments in the prior art

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
  • Method and device for adding code snippets
  • Method and device for adding code snippets
  • Method and device for adding code snippets

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other if there is no conflict. Hereinafter, the present invention will be described in detail with reference to the drawings and in conjunction with the embodiments.

[0022] In order to enable those skilled in the art to better understand the solutions of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, 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 should fall within the protection scope of this application.

[0023] It should be noted that the terms "first" and "second" in the description and cla...

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 method and a device for adding code fragments. The method for adding the code fragment adopts the methods of determining multiple code files to be added; adding multiple code files to be added to the target folder; traversing the code files to be added in the target folder, and converting the multiple code files to be added into Marking the class code file to obtain a plurality of marking class code files; applying one or more marking class code files in a plurality of marking class code files in the class file to be applied, wherein the class file to be applied is the application of the marking class code file file; add one or more code files to be added in the plurality of code files to be added to the class file to be applied according to the applied markup class code file. Through the present invention, the problem of low efficiency of adding mark class files to code fragments in the prior art is solved.

Description

Technical field [0001] The present invention relates to the field of data processing, and in particular to a method and device for adding code fragments. Background technique [0002] With the rapid development of computer technology, the software programming tool Visual Studio provides the function of CodeSnippet, which solves the problem of repeatedly inputting the same code segment, thereby improving development efficiency. The essence of CodeSnippet is an extensible markup language (eXtensible Markup Language, referred to as XML) file. The XML file contains a reusable code snippet. Most of the code in the code snippet is the same every time, only a small part. Is different. If you manually enter the entire code fragment, there will be problems such as annoying, error-prone, and low efficiency. Therefore, for scenes that require repeated code input, using CodeSnippet can extract different parts of the code snippets as parameters, replace them with placeholders, and input the...

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 Patents(China)
IPC IPC(8): G06F9/44
Inventor 马燕龙
Owner BEIJING GRIDSUM 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