A code editor right-key menu function implementation method and electronic equipment

A technology for a code editor and an implementation method, which is applied in the field of electronic equipment and the realization of right-click menu functions of code editors, can solve problems such as low efficiency and code editors that do not have right-click menu functions, and achieve the effect of improving editing efficiency

Inactive Publication Date: 2019-06-18
SHENZHEN DIANMAO TECH CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a method for realizing the function of the right-click menu of a code editor

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
  • A code editor right-key menu function implementation method and electronic equipment
  • A code editor right-key menu function implementation method and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0035] The present invention provides a method for realizing the right-click menu function of a code editor and an electronic device. In order to make the objectives, technical solutions and effects of the present invention clearer and clearer, the present invention will be described in further detail below. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0036] See figure 1 , figure 1 It is a flowchart of a preferred embodiment of a method for implementing the right-click menu function of a code editor according to the present invention. As shown in the figure, it includes the steps:

[0037] S1, bind the mouse right-click event in the third-party library in advance;

[0038] S2, bind a rendering function in the right mouse click event;

[0039] S3. When a right mouse click event is received, assign a behavior through the rendering function;

[0040] S4. Trigger to change t...

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 editor right-key menu function realization method and electronic equipment, and the method comprises the steps: binding a mouse right click event in a third-party library in advance; Binding a rendering function in the mouse right click event; When a mouse right click event is received, distributing a behavior through the rendering function; And changing the attribute in the global variable through the behavior trigger so as to dynamically render a right-key menu component. Through the method and the device, a user can click the right mouse button in the code editor to pop up the right button menu assembly, and after the sub-options in the right button menu assembly are selected, the functions of copying, pasting, full selection and the like are realized, sothat the editing efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method for realizing the function of a right-click menu of a code editor and an electronic device. Background technique [0002] An integrated development environment (IDE, Integrated Development Environment) is an application program used to provide a program development environment, generally including tools such as a code editor, a compiler, a debugger, and a graphical user interface. It integrates code writing function, analysis function, compilation function, debugging function and other integrated development software service sets. All software or software suites (groups) with this feature can be called integrated development environments. Such as Microsoft's Visual Studio series, Borland's C++Builder, Delphi series, etc. The program can run independently, or it can be used together with other programs. IDE is mostly used to develop HTML application software. For ex...

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
IPC IPC(8): G06F3/0482G06F3/0487
Inventor 孙悦李天驰翁晓君
Owner SHENZHEN DIANMAO 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