Check patentability & draft patents in minutes with Patsnap Eureka AI!

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 and an electronic device, aiming at solving the problem that the existing code editor does not have the function of the right-click menu, resulting in low efficiency during operation. The problem

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

Embodiment Construction

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

[0036] see figure 1 , figure 1 It is a flow chart of a preferred embodiment of a method for implementing the right-click menu function of a code editor in the present invention, as shown in the figure, which includes steps:

[0037] S1. Pre-binding the mouse right-click event in the third-party library;

[0038] S2. Bind a rendering function in the mouse right-click event;

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

[0040] S4. The behavior is triggere...

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
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More