CN111913704A - VScode-based method for rapidly developing GSP7 script and plug-in tool - Google Patents

VScode-based method for rapidly developing GSP7 script and plug-in tool Download PDF

Info

Publication number
CN111913704A
CN111913704A CN202010750849.6A CN202010750849A CN111913704A CN 111913704 A CN111913704 A CN 111913704A CN 202010750849 A CN202010750849 A CN 202010750849A CN 111913704 A CN111913704 A CN 111913704A
Authority
CN
China
Prior art keywords
code segment
code
vscode
plug
gsp7
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010750849.6A
Other languages
Chinese (zh)
Inventor
许忠贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202010750849.6A priority Critical patent/CN111913704A/en
Publication of CN111913704A publication Critical patent/CN111913704A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for rapidly developing GSP7 script based on VScode and a plug-in tool, relating to the technical field of script extension, wherein the method and the plug-in tool realize an extension plug-in platform provided by a VScode editor, the extension plug-in platform comprises a code segment library and a code segment trigger, wherein the code segment library is used for prefabricating and storing code segments, and the code segment trigger is used for identifying input character strings to match code segments in the code segment library. When a developer types a character string, a code segment trigger automatically identifies the typed character string code, searches a code segment matched with the typed character string in a code segment library after identification, the developer selects the code segment from the search result, and after the selection is completed, the typed character string is automatically complemented into the code segment. The invention can improve the development efficiency of the GSP7 script and realize the expansion rapidly.

Description

VScode-based method for rapidly developing GSP7 script and plug-in tool
Technical Field
The invention relates to the technical field of script extension, in particular to a method and a plug-in tool for rapidly developing GSP7 script based on VScode.
Background
At present, when a code editor built in a GSP Web3.0 client is used for web form development, the defects of no intelligent prompt, no global search, no conversion to a method/variable definition function, incapability of code version control of scripts, long time for storing metadata and the like exist when front-end scripts are written, and the working efficiency of front-end script development and maintenance of GSP7 products is reduced.
GSP7 is GenerSoft Platform7 in the wave, which is a new generation of universal service Platform developed by the wave based on Microsoft Net technology based on a great amount of experience and technology accumulated in the development process of enterprise management software for many years.
VS Code, a cross-platform source Code editor that Microsoft of Visualstudio Code released in 2015 runs on multiple platforms and aims at writing modern Web and cloud applications.
Disclosure of Invention
Aiming at the problem of low development and maintenance efficiency of the front-end script of the current GSP7 product, the invention provides a method for rapidly developing a GSP7 script based on VScode and a plug-in tool.
Firstly, the invention provides a method for rapidly developing GSP7 script based on VScode, and the technical scheme adopted for solving the technical problems is as follows:
a method for rapidly developing GSP7 script based on VScode is based on an extended plug-in platform provided by a VScode editor, wherein the extended plug-in platform comprises a code segment library and a code segment trigger, the code segment library is used for storing code segments, and the code segment trigger is used for identifying an input character string to match the code segments in the code segment library.
Further, a method for rapidly developing a GSP7 script based on VScode includes the following specific implementation processes:
1) the code segments are pre-fabricated in a code segment library,
2) the developer types a string in the VSCode code editor,
3) the code segment trigger automatically identifies the typed character string code and carries out matching search in the code segment library after identification,
4) the code segment trigger looks up a code segment in the code segment library that matches the entered string,
5) and the developer selects the code segment from the search result, and after the selection is finished, the input character string is automatically complemented into the code segment so as to realize quick expansion.
Further, when performing step 2), the developer can type a plurality of character strings or codes at one time in the VSCode code editor, and character strings which do not belong to the same segment are separated by a spacer.
Optionally, a method for rapidly developing a GSP7 script based on a VSCode integrates a front-end script framework and a public method for GSP platform and service group encapsulation into a code fragment library of an extension plug-in platform provided by a VSCode editor in the form of code fragments.
Further optionally, a method for rapidly developing a GSP7 script based on VSCode, where implementation codes of the method may be sourced at github, and are extended according to the following two cases:
a) pulling the implementation code to the local, creating a new branch, submitting the Pull Request after modification, merging the modified branch to the main branch after verification is passed, and then releasing a new version;
b) and pulling the implementation code to the local, registering the account number of the VSCE developer, directly packaging the modified VSCE developer account number into a plug-in installation package in a vsix format, and performing offline installation.
Secondly, the invention provides a plug-in tool for rapidly developing GSP7 scripts based on VScode, and the technical scheme adopted for solving the technical problems is as follows:
a plug-in tool for rapidly developing GSP7 script based on VScode, based on VScode code editor, its structure includes:
a code segment library for preparing and storing code segments,
an input module for a developer to type in a character string,
an output module for transmitting the typed character string to the code segment triggering module,
a code segment triggering module used for searching the code segment matched with the key-in character string in the code segment library,
and the automatic completion module is used for automatically completing the input character string into the code segment after a developer selects the code segment from the search result so as to realize quick expansion.
Further, the developer can enter a plurality of character strings or codes at one time through the input module, and the character strings which do not belong to the same segment are separated by a spacer.
Further, the GSP platform and the front-end script framework and the public method of the service group encapsulation are integrated and stored in a code segment base based on a VScode code editor in the form of code segments.
Compared with the prior art, the method for rapidly developing the GSP7 script based on the VScode and the plug-in tool have the following beneficial effects:
on the one hand, the invention searches code segments through a code segment library and a code segment trigger to automatically complement character strings and improve the development efficiency of GSP7 scripts on the basis of a VScode code editor, and on the other hand, the invention can open sources at github and realize expansion according to actual requirements.
Drawings
FIG. 1 is a flow chart of a method according to a first embodiment of the present invention;
fig. 2 is a block diagram of the second embodiment of the present invention.
The reference information in the drawings indicates:
1. a code segment library, 2, an input module, 3, an output module,
4. a code segment triggering module, 5, an automatic completion module.
Detailed Description
In order to make the technical scheme, the technical problems to be solved and the technical effects of the present invention more clearly apparent, the following technical scheme of the present invention is clearly and completely described with reference to the specific embodiments.
The first embodiment is as follows:
the embodiment provides a method for rapidly developing GSP7 script based on VScode, which is based on an extended plug-in platform provided by a VScode editor, wherein the extended plug-in platform comprises a code segment library and a code segment trigger, the code segment library is used for storing code segments, and the code segment trigger is used for identifying an input character string to match code segments in the code segment library.
In this embodiment, a method for rapidly developing a GSP7 script based on a VSCode integrates a front-end script framework and a public method for GSP platform and service group encapsulation into a code segment library of an extension plug-in platform provided by a VSCode editor in the form of code segments.
With reference to fig. 1, in this embodiment, a method for rapidly developing a GSP7 script based on a VSCode includes:
step S10, prefabricating code segments in the code segment library,
step S20, the developer enters one or more character strings in the VSCode code editor, the character strings not belonging to the same segment are separated by a spacer,
step S30, the code segment trigger automatically identifies the typed character string code, and carries out matching search in the code segment library after identification,
step S40, the code segment trigger searches the code segment library for a code segment matching the entered string,
and step S50, the developer selects the code segment from the search result, and after the selection is completed, the typed character string is automatically completed as the code segment so as to realize quick expansion.
It is added that the implementation code of the method can be sourced at github and expanded according to the following two cases:
a) pulling the implementation code to the local, creating a new branch, submitting the Pull Request after modification, merging the modified branch to the main branch after verification is passed, and then releasing a new version;
b) and pulling the implementation code to the local, registering the account number of the VSCE developer, directly packaging the modified VSCE developer account number into a plug-in installation package in a vsix format, and performing offline installation.
Example two:
with reference to fig. 2, the present embodiment provides a plug-in tool for quickly developing GSP7 script based on VSCode, and the structure of the plug-in tool based on VSCode code editor includes:
a code segment library 1 for preparing and storing code segments,
an input module 2 for the developer to type in the character string,
an output module 3 for transmitting the typed character string to a code segment triggering module 4,
a code segment triggering module 4, which is used for searching the code segment matched with the key-in character string in the code segment library 1,
and the automatic completion module 5 is used for automatically completing the input character string into the code segment after the developer selects the code segment from the search result, so as to realize quick expansion.
In this embodiment, the developer can enter a plurality of character strings or codes at one time through the input module 2, and character strings not belonging to the same segment are separated by spacers.
In this embodiment, the GSP platform, the front-end script framework for service group encapsulation, and the public method are integrated in the form of code segments and stored in a code segment library based on the VSCode code editor.
In summary, the method and the plug-in tool for rapidly developing the GSP7 script based on VScode can improve the development efficiency of the GSP7 script and realize expansion.
The principles and embodiments of the present invention have been described in detail using specific examples, which are provided only to aid in understanding the core technical content of the present invention. Based on the above embodiments of the present invention, those skilled in the art should make any improvements and modifications to the present invention without departing from the principle of the present invention, and therefore, the present invention should fall into the protection scope of the present invention.

Claims (8)

1. A method for rapidly developing GSP7 script based on VScode is characterized in that the method is based on an extended plug-in platform provided by a VScode editor, the extended plug-in platform comprises a code segment library and a code segment trigger, wherein the code segment library is used for storing code segments, and the code segment trigger is used for identifying an input character string to match code segments in the code segment library.
2. The method for rapidly developing the GSP7 script based on the VScode as claimed in claim 1, wherein the specific implementation process of the method comprises:
1) the code segments are pre-fabricated in a code segment library,
2) the developer types a string in the VSCode code editor,
3) the code segment trigger automatically identifies the typed character string code and carries out matching search in the code segment library after identification,
4) the code segment trigger looks up a code segment in the code segment library that matches the entered string,
5) and the developer selects the code segment from the search result, and after the selection is finished, the input character string is automatically completed as the code segment.
3. The method for rapidly developing GSP7 script based on VScode as claimed in claim 2, wherein, when performing step 2), the developer can type multiple character strings or codes at one time in the VScode code editor, and the character strings not belonging to the same segment are separated by a spacer.
4. The method of claim 1, wherein the method integrates front-end script framework, common method of GSP platform and service group encapsulation in code segment form into code segment library of extension plug-in platform provided by VScode code editor.
5. The method for rapidly developing the GSP7 script based on VScode according to claim 1, wherein the implementation code of the method can be open at github and extended according to the following two cases:
a) pulling the implementation code to the local, creating a new branch, submitting the Pull Request after modification, merging the modified branch to the main branch after verification is passed, and then releasing a new version;
b) and pulling the implementation code to the local, registering the account number of the VSCE developer, directly packaging the modified VSCE developer account number into a plug-in installation package in a vsix format, and performing offline installation.
6. A plug-in tool for rapidly developing GSP7 script based on VScode is characterized in that the structure of the plug-in tool based on VScode code editor comprises:
a code segment library for preparing and storing code segments,
an input module for a developer to type in a character string,
an output module for transmitting the typed character string to the code segment triggering module,
a code segment triggering module used for searching the code segment matched with the key-in character string in the code segment library,
and the automatic completion module is used for automatically completing the input character string into the code segment after the developer selects the code segment from the search result.
7. The plug-in tool for rapid development of GSP7 script based on VScode as claimed in claim 6, wherein the developer can type in multiple character strings or codes at one time through the input module, and the character strings not belonging to the same segment are separated by a spacer.
8. The plug-in tool for rapid development of GSP7 script based on VScode according to claim 6, wherein the front-end script framework, common method of GSP platform and SCHOME encapsulation are integrated in code segment form and stored in VScode code editor-based code segment library.
CN202010750849.6A 2020-07-30 2020-07-30 VScode-based method for rapidly developing GSP7 script and plug-in tool Pending CN111913704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010750849.6A CN111913704A (en) 2020-07-30 2020-07-30 VScode-based method for rapidly developing GSP7 script and plug-in tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010750849.6A CN111913704A (en) 2020-07-30 2020-07-30 VScode-based method for rapidly developing GSP7 script and plug-in tool

Publications (1)

Publication Number Publication Date
CN111913704A true CN111913704A (en) 2020-11-10

Family

ID=73287650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010750849.6A Pending CN111913704A (en) 2020-07-30 2020-07-30 VScode-based method for rapidly developing GSP7 script and plug-in tool

Country Status (1)

Country Link
CN (1) CN111913704A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089981A (en) * 2022-01-24 2022-02-25 麒麟软件有限公司 Method for rapidly manufacturing spec file based on VSCode integrated development environment and plug-in tool
CN114756297A (en) * 2022-04-20 2022-07-15 杭州玳数科技有限公司 Project initialization method and system based on Vs Code

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461548A (en) * 2014-12-15 2015-03-25 北京国双科技有限公司 Code fragment adding method and device
CN104881285A (en) * 2015-05-25 2015-09-02 北京理工大学 Code snippet marking and reusing system based on body
CN109634594A (en) * 2018-11-05 2019-04-16 南京航空航天大学 A kind of code snippet recommended method considering code statement order information
CN109683907A (en) * 2018-12-29 2019-04-26 深圳乐信软件技术有限公司 Code completion method, apparatus, equipment and storage medium
CN110716749A (en) * 2019-09-03 2020-01-21 东南大学 Code searching method based on function similarity matching

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461548A (en) * 2014-12-15 2015-03-25 北京国双科技有限公司 Code fragment adding method and device
CN104881285A (en) * 2015-05-25 2015-09-02 北京理工大学 Code snippet marking and reusing system based on body
CN109634594A (en) * 2018-11-05 2019-04-16 南京航空航天大学 A kind of code snippet recommended method considering code statement order information
CN109683907A (en) * 2018-12-29 2019-04-26 深圳乐信软件技术有限公司 Code completion method, apparatus, equipment and storage medium
CN110716749A (en) * 2019-09-03 2020-01-21 东南大学 Code searching method based on function similarity matching

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089981A (en) * 2022-01-24 2022-02-25 麒麟软件有限公司 Method for rapidly manufacturing spec file based on VSCode integrated development environment and plug-in tool
CN114756297A (en) * 2022-04-20 2022-07-15 杭州玳数科技有限公司 Project initialization method and system based on Vs Code

Similar Documents

Publication Publication Date Title
US20200293291A1 (en) Source code generation from web-sourced snippets
KR20200108775A (en) Training corpus generating method, apparatus, device and storage medium
CN109522225B (en) Automatic test assertion method and device, test platform and storage medium
CN106843840B (en) Source code version evolution annotation multiplexing method based on similarity analysis
US10120658B2 (en) Method and system for realizing software development tasks
CN111563041B (en) Test case on-demand accurate execution method
CN109933645B (en) Information query method, device, computer equipment and storage medium
CN106341257B (en) Device for self-defining log analysis rule and automatically analyzing log
CN111913704A (en) VScode-based method for rapidly developing GSP7 script and plug-in tool
CN110618940A (en) Stack information tracking method and device, computer readable medium and computing device
CN102779091A (en) Test transformation method and test transformation device
CN106980518B (en) Method for batch inspection of process design files
CN106383734A (en) Method for extracting detailed design from codes
CN111913874B (en) Software defect tracing method based on syntactic structure change analysis
CN113609101A (en) Real-time data task issuing method and device, electronic equipment and storage medium
CN113254027B (en) Semiconductor device control program conversion method, system, device and storage medium
CN117289938A (en) Intelligent auxiliary system for software development
CN113821496B (en) Database migration method, system, device and computer readable storage medium
CN114064601B (en) Storage process conversion method, device, equipment and storage medium
CN110222051B (en) Intelligent contract compression method for Ether house block chain
CN114297057A (en) Design and use method of automatic test case
CN111562937A (en) Code method level defect early warning method
CN107315587B (en) Spacecraft on-orbit maintenance injection code generation method based on secondary link
CN111026401A (en) Mobile terminal thermal restoration method
CN112416362B (en) PDK compiling function implementation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201110

RJ01 Rejection of invention patent application after publication