Code fragment adding method and device

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: 2015-03-25
BEIJING GRIDSUM TECH CO LTD
View PDF6 Cites 8 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
  • Code fragment adding method and device
  • Code fragment adding method and device
  • Code fragment adding method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] It should be noted that the embodiments in this 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 solution 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 code fragment adding method and device. The method includes: determining a plurality of to-be-added code files; adding the to-be-added code files to a target folder; traversing the to-be-added code files in the target folder, and sequentially converting the to-be-added code files into a plurality of marking class code files; applying one or more of the marking type code files to to-be-applied class files, wherein the to-be-applied class files are files applying the marking type code files; adding one or more of the to-be-added code files into the to-be-applied class files according to the applied marking class code files. By the method, the problem that the prior art for adding the marking class files to code fragments is low in efficiency is solved.

Description

Technical field [0001] The 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, CodeSnippet can be used to extract different parts of the code snippets as parameters, replace them with placeholders, and input these ...

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): 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