Code management method and device, equipment and medium

By creating multiple code tabs and windows, the system supports flexible creation and position switching of tabs and windows, and allows for model settings and knowledge base activation in different windows. This solves the problem of simple interaction in code management windows in web terminal tools, improves code display and operation efficiency, and adapts to different business scenarios.

CN120909633APending Publication Date: 2025-11-07BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511014440.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-22
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

In existing technologies, the code management window of web terminal tools has a simple interactive form, which cannot meet the diverse needs of users, and the efficiency of code display and operation is low.

Method used

This paper provides a code management method that allows for the creation of multiple code tabs and windows, supports flexible creation and position switching of tabs and windows, and enables model settings and knowledge base activation in different windows, thus achieving diversified code management.

Benefits of technology

It improves code display and operation efficiency, meets diverse user needs, adapts to different business scenarios, and enhances the breadth and versatility of code management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120909633A_ABST
    Figure CN120909633A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a code management method and device, equipment and a medium, and the method comprises the steps: responding to a label page creation operation, and creating a plurality of code label pages; creating and displaying a plurality of first code windows in the first code tab page in response to a window creation operation on the first code tab page in the plurality of code tab pages; in response to a position switching operation on a second code window in the plurality of first code windows, switching the second code window from the first position to a second position for display; and in response to a model setting operation and a knowledge base starting operation on the second code window, performing code management in the second code window based on a target model corresponding to the model setting operation and a target knowledge base corresponding to the knowledge base starting operation. According to the method, one-key label page and window creation is supported, the window supports autonomous arrangement and position adjustment, the code display efficiency and the operation efficiency are improved, and the universality and universality of code management are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to a code management method and device, equipment and medium. BACKGROUND

[0002] In the related art, code management can be implemented on the basis of a large model through a Web terminal tool, but the window interaction form is relatively simple, and cannot meet the diversified needs of users, and the code display efficiency and operation efficiency are also low. SUMMARY

[0003] In order to solve the above technical problems, the present disclosure provides a code management method, device, equipment and medium.

[0004] The present disclosure provides a code management method, which comprises the following steps:

[0005] In response to a tab creation operation, a plurality of code tabs are created;

[0006] In response to a window creation operation on a first code tab in the plurality of code tabs, a plurality of first code windows are created and displayed in the first code tab;

[0007] In response to a position switching operation on a second code window in the plurality of first code windows, the second code window is switched from a first position to a second position for display;

[0008] In response to a model setting operation and a knowledge base starting operation on the second code window, code management is performed on a target model corresponding to the model setting operation and a target knowledge base corresponding to the knowledge base starting operation in the second code window.

[0009] The present disclosure further provides a code management device, which comprises:

[0010] A first creation module is configured to create a plurality of code tabs in response to a tab creation operation;

[0011] A second creation module is configured to create and display a plurality of first code windows in a first code tab in response to a window creation operation on the first code tab in the plurality of code tabs;

[0012] A switching module is configured to switch a second code window from a first position to a second position for display in response to a position switching operation on the second code window in the plurality of first code windows;

[0013] The management module is configured to, in response to a model setting operation and a knowledge base starting operation on the second code window, perform code management in the second code window based on a target model corresponding to the model setting operation and a target knowledge base corresponding to the knowledge base starting operation.

[0014] The electronic device includes a processor, a memory for storing executable instructions of the processor, and the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the code management method provided in the embodiments of the present disclosure.

[0015] The electronic device includes a processor, a memory for storing executable instructions of the processor, and the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the code management method provided in the embodiments of the present disclosure.

[0016] The technical scheme provided by the embodiments of the present disclosure has the following advantages compared with the prior art: the code management scheme provided by the embodiments of the present disclosure creates multiple code tab pages in response to a tab page creation operation; in response to a window creation operation on a first code tab page in the multiple code tab pages, multiple first code windows are created and displayed in the first code tab page; in response to a position switching operation on a second code window in the multiple first code windows, the second code window is switched from a first position to a second position for display; and in response to a model setting operation and a knowledge base starting operation on the second code window, code management is performed in the second code window based on a target model corresponding to the model setting operation and a target knowledge base corresponding to the knowledge base starting operation. With the above technical scheme, the code management tool can create multiple code tab pages and multiple code windows in the code tab pages according to user needs, the code windows can be switched from one position to another position for display, one-key creation of tab pages and windows is supported, the windows support autonomous arrangement and adjustment of positions, the windows can be flexible and changeable according to actual needs of users, diversified display needs of users are met, code display efficiency and operation efficiency are improved, and through support of model setting and knowledge base starting in different windows, different windows can perform code management based on different models and knowledge bases, so that the code management can adapt to different business scenarios, and the universality and generality of the code management are improved. BRIEF DESCRIPTION OF DRAWINGS

[0017] The above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent as various embodiments of the present disclosure are described in conjunction with the accompanying drawings, in which like reference numbers represent like elements throughout the drawings. It should be noted that the drawings are schematic and elements do not necessarily appear to scale.

[0018] Figure 1 A flowchart of a code management method provided by the embodiments of the present disclosure is shown in FIG. 1.

[0019] Figure 2 A schematic diagram of a code tab page provided in an embodiment of this disclosure;

[0020] Figure 3 A schematic diagram of another code tab page provided in an embodiment of this disclosure;

[0021] Figure 4 A flowchart illustrating another code management method provided in this embodiment of the disclosure;

[0022] Figure 5 A schematic diagram illustrating yet another code tab page provided in an embodiment of this disclosure;

[0023] Figure 6 A schematic diagram illustrating yet another code tab page provided in an embodiment of this disclosure;

[0024] Figure 7 A schematic diagram of a theme settings page provided in an embodiment of this disclosure;

[0025] Figure 8 This is a schematic diagram of the structure of a code management device provided in an embodiment of the present disclosure;

[0026] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0027] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0028] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0029] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0030] It should be noted that the terms "first", "second", and the like mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules or units.

[0031] It should be noted that the modification of "one" or "multiple" mentioned in the present disclosure is illustrative but not restrictive, and those skilled in the art should understand that unless otherwise explicitly indicated in the context, it should be understood as "one or more".

[0032] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.

[0033] In order to solve the problem of simple window interaction in code management in the related art, the present disclosure provides a code management method, which will be introduced below in combination with specific embodiments.

[0034] Figure 1 A flowchart of a code management method provided in the embodiments of the present disclosure, the method can be executed by a code management device, wherein the device can be implemented by software and / or hardware, and can be generally integrated in an electronic device. As shown in Figure 1 The method is applied to a Web code management tool, which includes the following steps.

[0035] Step 101, in response to a tab creation operation, creating a plurality of code tabs.

[0036] The embodiments of the present disclosure can be applied to a Web code management tool, which can be a Web terminal tool driven by a large model. The Web terminal tool can be a command line interface tool running based on a browser. Users do not need to install client software, and can access and manage remote servers or cloud computing resources through a browser. The Web code management tool can quickly generate corresponding executable commands or help users debug and optimize commands based on the natural language of the user. The large model realizes natural language processing, code generation, code error correction, and suggestion repair and other code management functions, simplifies the use cost of the user, and realizes a command terminal tool with higher efficiency and higher accuracy.

[0037] The tab page creation operation can be a specific interactive operation of creating a code tab page. For example, the tab page creation operation can include a click, a long press, a double-click, or the like of a creation control of a tab bar. The disclosure embodiments do not limit this. The code tab page can be a tab page of aggregating and managing multiple code windows. Triggering operations on different code tab pages can switch the displayed code windows. One code tab page can correspond to one code theme. For example, one code tab page corresponds to the code of one component, or corresponds to the code of one business scenario.

[0038] The code management apparatus can receive a tab page creation operation of a user, create multiple code tab pages, and display a first code tab page in the multiple code tab pages. The first code tab page can be a code tab page that is currently being displayed.

[0039] Optionally, after the multiple code tab pages are created, the code management method can further include at least one of the following: in response to a closing operation on a second code tab in the multiple code tab pages, closing the second code tab; in response to a renaming operation on a third code tab page in the multiple code tab pages, switching the name of the third code tab page from a first name to a second name.

[0040] An exemplary code tab page is shown in FIG. 1. Figure 2 An exemplary code tab page is shown in FIG. 1. Figure 2 As shown in FIG. 1, a page 200 is shown, in which four code tab pages T1, T2, T3, and T4 are created, and the T1 code tab page is currently being displayed. When a user triggers an operation on the "+" creation control, a new code tab page can be created.

[0041] In step 102, in response to a window creation operation on a first code tab page in the multiple code tab pages, multiple first code windows are created and displayed in the first code tab page.

[0042] The window creation operation can be a specific interactive operation of creating a code window. For example, the window creation operation can include a click, a long press, a double-click, or the like of a window creation control of a code tab page. In the disclosure embodiments, multiple types of window creation controls can be provided to create different types of code windows. The first code tab page can be a code tab page that is currently being displayed and is creating a code window. The first code window can be a code window created in the first code tab page. The number of first code windows can be set according to actual conditions.

[0043] Optionally, each first code window displays corresponding code content through a container, and at least one of corresponding tools, working modes, models and knowledge bases is set. The container can be a container card with a boundary in the user interface, used to aggregate and display associated information, functions or interactive elements, and achieve modular segmentation of content through visual wrapping. In the embodiments of the present disclosure, one code window is segmented through one container, which improves display efficiency and improves the hierarchy and readability of information display. The code content corresponding to different code windows can be the same or different according to actual needs. The tool can be a tool that a code window supports calling according to code content, and the tool in the embodiments of the present disclosure can include local tools and third-party tools, which are specifically set according to actual conditions, and different code windows can call different tools. The working mode can be a specific management mode of a code window, and the working mode in the embodiments of the present disclosure can include a model-based mode and a non-model mode. The model-based mode relies on a model for code management, and the non-model mode does not rely on a model. The working mode of the code window can be switched between the two modes in response to a mode switching operation. The mode switching operation can be a trigger operation on a switching control or a preset shortcut key. The knowledge base can be a knowledge base that a code window refers to when managing code. Different code windows can set different knowledge bases. By displaying different code content according to the needs of different code windows, at least one of corresponding tools, working modes, models and knowledge bases is set. Different code windows can support different settings, improve the flexibility of code window settings, effectively meet the diverse needs of users, and improve code management efficiency.

[0044] Specifically, after displaying the first code tab page, the code management apparatus can receive a window creation operation of the user in the first code tab page, create a plurality of first code windows in the first code tab page, and display the plurality of first code windows. The size of each first code window can be adjusted as needed.

[0045] For example, Figure 2 , Figure 2The left sidebar of the T1 code tab page can include four window creation controls, such as a window creation control 203 in a model-based mode, a window creation control 204 in a non-model mode, a window creation control 205 based on a Web tool, and a window creation control 206 based on a local tool, which are used to create a code window in the model-based mode, a code window in the non-model mode, a code window based on the Web tool, and a code window based on the local tool, respectively. When a user performs a triggering operation on the window creation control 204, a code window 201 in the non-model mode can be created in the T1 code tab page. When a user performs a triggering operation on the window creation control 203, a code window 202 in the model-based mode can be created in the T1 code tab page. The code window 202 is highlighted by a thickened border to indicate that it is selected and in an editing state. Two code windows are created as an example in the figure.

[0046] Exemplarily, Figure 3 Another schematic diagram of a code tab page provided by an embodiment of the present disclosure is shown in FIG. 3. Figure 3 As shown in the figure, the page 300 shows a T1 code tab page, which includes four code windows of different sizes. Each code window has the same size when created, and the size is adjusted according to a user's adjustment operation afterwards, such as four different sizes shown in the figure. The code window with the smallest size is highlighted by a thickened border to indicate that it is selected and in an editing state. This is only an example.

[0047] In step 103, in response to a position switching operation on a second code window in the plurality of first code windows, the second code window is switched from a first position to a second position for display.

[0048] The second code window can be a code window currently selected for position switching in the plurality of first code windows. The first position can be an initial position of the second code window before the position switching operation, and the second position can be a position selected by the second code window for switching. The position switching operation can be an operation of switching the second code window from one position to another position. In an embodiment of the present disclosure, the position switching operation can include consecutive operations of a selection operation, a movement operation, and a release operation. The selection operation can be a click, double-click, or long-press operation on an interactive object to enter a selected state, such as a long-press operation on the second code window. The movement operation can be an operation of moving the interactive object while keeping the selected state, to achieve position switching of the interactive object. In an embodiment of the present disclosure, the movement operation on the second code window in the selected state can be performed to achieve position switching. The release operation can be an operation of releasing the selected state of the interactive object, such as a click, double-click, or long-press operation.

[0049] Exemplarily, Figure 4Another code management method provided by the embodiments of the present disclosure is shown in the flowchart of FIG. 11. In a possible implementation, in response to a position switching operation on a second code window in a plurality of first code windows, switching the second code window from a first position to a second position for display can include the following steps. Figure 4

[0050] Step 401: In response to a selection operation on the second code window, the second code window is displayed in a floating style.

[0051] The floating style means that the second code window is displayed in a preset size and a preset transparency. The preset size can be a fixed size set for a window that needs to be displayed in a floating manner, and can be set according to actual conditions. The preset transparency can be a transparency set for a window that needs to be displayed in a floating manner, for example, the preset transparency can be set to 50%. The floating display can be a display mode of floating on the upper layer of the main interface to block the current display content. Through the setting of the floating style, the user can quickly know the currently selected code window and quickly perform subsequent position switching.

[0052] When the code management apparatus receives a selection operation of a user on a second code window in a plurality of first code windows, the second code window can be displayed in a floating style, and the second code window is in a selected state and supports movement and size adjustment.

[0053] Step 402: In response to a movement operation on the second code window in the floating style, a preview window of the second code window is displayed above the second position.

[0054] The movement operation can be an operation of moving the second code window while keeping the selected state. The preview window of the second code window can be a window for displaying a preview effect of the second code window after the position switching operation before the position switching operation ends. The content of the preview window is the same as that of the second code window, except for the position and size.

[0055] When the code management apparatus receives a movement operation of a user on the second code window in the floating style, after the movement operation stops, the code management apparatus can display a preview window of the second code window above the second position where the movement operation stops. The preview window blocks the original content corresponding to the second position, so that the user can quickly see the effect after the movement of the second code window.

[0056] Step 403: In response to a release operation on the second code window in the floating style, a third code window corresponding to the second position is moved or reduced, and a preview window of the second code window in the second position is switched to display the second code window.

[0057] ​The third code window can be the original code window displayed at the second position before the position switching operation on the second code window, and the number of the third code window can be one or two. When the number of the third code window is two, the third code window can be displayed in a horizontal arrangement or a vertical arrangement, and the specific arrangement is not limited.

[0058] Specifically, when the code management apparatus receives the release operation of the user on the second code window in the floating mode, if the second position is empty, the preview window of the second code window at the second position can be directly closed, and the second code window is displayed, so as to realize the switching display of the second code window from the first position to the second position. If the second position exists a corresponding third code window, the third code window can be moved or reduced, and then the preview window of the second code window at the second position is closed, and the second code window is displayed, so as to realize the switching display of the second code window from the first position to the second position.

[0059] Optionally, the moving or reducing of the third code window corresponding to the second position can include: in response to the number of the third code window being one and the second position existing an idle adjacent position, moving the third code window to the idle adjacent position; in response to the number of the third code window being at least one and the second position not existing an idle adjacent position, reducing the at least one third code window by a target parameter, so that the sum of the target parameters of the at least one third code window before the position switching operation is equal to the sum of the target parameters of the at least one third code window and the second code window after the position switching operation, wherein the target parameter is width or height.

[0060] The idle adjacent position can be an adjacent position with no displayed content in the plurality of adjacent positions of the second position, and the plurality of adjacent positions of the second position can include adjacent positions on the left side, the right side, the upper side and the lower side of the second position. The target parameter can be width or height, which is determined according to the arrangement of the at least one third code window, for example, when the at least one third code window is arranged horizontally, the target parameter is width, and when the at least one third code window is arranged vertically, the target parameter is height.

[0061] Specifically, when the code management apparatus moves or shrinks the third code window corresponding to the second position, the number of the third code windows can be obtained and it is determined whether there is a free adjacent position for the second position. If the number of the third code windows is one and there is a free adjacent position for the second position, the third code window is moved to the free adjacent position. If the number of the third code windows is at least one and there is no free adjacent position for the second position, the second position cannot be emptied by moving, and at least one third code window can be shrunk. The target parameter and size of the shrinkage are determined according to the arrangement of the at least one third code window. When the at least one third code window is horizontally arranged, the target parameter is the width, and the width of the at least one third code window is shrunk so that the sum of the widths of the at least one third code window before the position switching operation is equal to the sum of the widths of the at least one third code window and the second code window after the position switching operation, and the width of each third code window is the same as that of the second code window. When the at least one third code window is vertically arranged, the target parameter is the height, and the height of the at least one third code window is shrunk so that the sum of the heights of the at least one third code window before the position switching operation is equal to the sum of the heights of the at least one third code window and the second code window after the position switching operation, and the height of each third code window is the same as that of the second code window.

[0062] In the above scheme, when the code window is switched in position, the number of existing code windows in the position after switching and whether the adjacent position is free are considered for moving or shrinking the existing code windows, and a position is reserved for the code window to be switched, so that the position switching of the code window is more flexible and efficient, and more in line with the actual application scenario, meeting the window display needs of users.

[0063] For example, Figure 5 Another schematic diagram of a code tab page provided by the embodiments of the present disclosure is as follows: Figure 5As shown, the page 500 in the figure shows a T1 code tab, which can include three first code windows. The user performs a position switching operation on a second code window 501, which includes a selection operation, a movement operation and a release operation. The border of the second code window 501 is thickened to indicate that it is selected. After the selection operation on the second code window 501, a second code window 502 in a floating style can be displayed, which is floating on the top layer. The user performs a movement operation on the second code window 502 in the floating style. When the movement operation is stopped, a preview window of the second code window is displayed at a second position. At the second position, there is a third code window 503. The preview window is displayed above the third code window 503, as shown in the light gray rectangular frame in the figure. After the release operation on the second code window 502 in the floating style, since there is a third code window at the second position and there is a free adjacent position to the right of the second position, the third code window 503 can be moved to the right to the free adjacent position first, as shown by the arrow in the figure. Then the second code window 501 can be displayed at the second position in the effect of the preview window.

[0064] Exemplary, Figure 6 Another exemplary diagram of a code tab is provided by the embodiments of the present disclosure, as shown in Figure 6As shown, the page 600 in the figure shows a T1 code tab page, which can include four first code windows. The user performs a position switching operation including a selection operation, a movement operation and a release operation on a second code window 601. The border of the second code window 601 is thickened to indicate that it is selected. After the selection operation is performed on the second code window 601, a second code window 602 in a floating style can be displayed, which is floating on the top layer. The user performs a movement operation on the second code window 602 in the floating style. When the movement operation is stopped, a preview window of the second code window is displayed at a second position. At the second position, there are a third code window 603 and a third code window 604. The preview window is displayed above the third code window 603 and the third code window 604, as shown in the light gray rectangular frame in the figure. After the release operation is performed on the second code window 602 in the floating style, since there are two third code windows at the second position and there is no idle adjacent position at the second position, the width of the third code window 603 and the third code window 604 can be reduced first, as shown by the two arrows in the figure. The width of the third code window 603 is reduced to the right, and the width of the third code window 604 is reduced to the left, so that the sum of the widths of the third code window 603 and the third code window 604 before the position switching operation is equal to the sum of the widths of the third code window 603, the third code window 604 and the second code window after the position switching operation. The widths of the third code window 603, the third code window 604 and the second code window are the same. Then, the second code window 601 can be displayed at the second position in the effect of the preview window.

[0065] In the above scheme, for the code windows displayed in the code tab page, a continuous position switching operation including a selection operation, a movement operation and a release operation is performed to switch the positions. During the switching process, the selected code window is displayed in a floating style, and a preview window is displayed at the position to be switched, and the original window is moved or reduced, so that the whole position switching process is visualized. The user can perceive each step and know the display effect of the window after switching in advance. If it does not meet the requirements, the position can be switched again flexibly. The visualized process of position switching effectively improves the accuracy and efficiency of the user in switching the positions of the windows.

[0066] In step 104, in response to the model setting operation on the second code window and the knowledge base starting operation, the code management is performed on the target model corresponding to the model setting operation and the target knowledge base corresponding to the knowledge base starting operation in the second code window.

[0067] The model setting operation can be an operation of selecting a model relied on by the code window, specifically can include a triggering operation on the model control, and a selection operation on one of the displayed multiple models, the multiple models can be models that support the call in advance, the specific number and type are determined according to actual conditions; the target model is the model corresponding to the model setting operation. The knowledge base starting operation can be an operation of opening the called target knowledge base for management, for example, it can be an opening operation on the knowledge base switch control of the target knowledge base. The knowledge base can be a knowledge collection that has been sorted, classified and annotated, and can exist in the form of a database or a document library, and can include facts, rules, experiences and solutions in a certain field, etc. The target knowledge base can be a multi-field knowledge base built-in the Web code management tool.

[0068] Specifically, after the code management apparatus receives the model setting operation of the second code window by the user, the model corresponding to the model setting operation can be determined as the target model, and the code content in the second code window is managed based on the target model; receiving the knowledge base starting operation of the second code window by the user, the target knowledge base can be opened, and the code content in the second code window is managed based on the target knowledge base. The code management of the embodiments of the present disclosure can include code generation, code error correction, suggestion repair and the like. The execution order of the model setting operation and the knowledge base starting operation is not limited.

[0069] For example, referring to Figure 2 , after the triggering operation on the model control 2021 in the second code window 202, four models can be displayed in the card 2023. The user selects model 1 in the four models, and the model 1 is the target model. The second code window 202 is managed based on the model 1. The opening operation on the knowledge base switch control 2022 of the A knowledge base in the second code window 202 can realize the knowledge base starting operation. The A knowledge base is the target knowledge base. The second code window 202 is managed based on the A knowledge base.

[0070] The execution order of the above steps 103 and 104 is only an example in Figure 1 , and step 104 can be executed before step 103.

[0071] The code management scheme provided by the embodiments of the present disclosure can create multiple code tab pages in response to a tab page creation operation; create and display multiple first code windows in a first code tab page in response to a window creation operation on the first code tab page in the multiple code tab pages; switch and display a second code window from a first position to a second position in response to a position switching operation on the second code window in the multiple first code windows; and perform code management in the second code window based on a target model corresponding to a model setting operation and a target knowledge base corresponding to a knowledge base starting operation in response to the model setting operation and the knowledge base starting operation on the second code window. With the above technical scheme, the code management tool can create multiple code tab pages and multiple code windows in the code tab pages according to user needs, the code windows can be switched and displayed from one position to another position, one-key creation of tab pages and windows is supported, the windows support autonomous arrangement and adjustment of positions, the windows can be flexible and changeable according to actual needs of users, diversified display needs of users are met, code display efficiency and operation efficiency are improved, and model setting and knowledge base starting are supported in different windows, so that different windows can perform code management based on different models and knowledge bases, different business scenarios can be adapted to, and the universality and generality of code management are improved.

[0072] In some embodiments, the code management method can further include: in response to a splitting operation on a fourth code window in the multiple first code windows, copying the fourth code window to obtain a fifth code window in the first code tab page, and displaying the fifth code window at an idle adjacent position of the fourth code window.

[0073] The fourth code window can be a code window corresponding to the splitting operation in the multiple first code windows, the splitting operation can be an operation of copying a code window to obtain an identical code window and displaying the identical code window, and specifically can be a triggering operation of a splitting control in a code window. The fifth code window can be a code window obtained by splitting the fourth code window, and the code content, set tool, working mode, model, and knowledge base of the fifth code window are the same as those of the fourth code window.

[0074] The code management apparatus can, after displaying a plurality of first code windows, after receiving a splitting operation of a fourth code window in the plurality of first code windows, copy the fourth code window to obtain a fifth code window in the first code tab page, determine an idle adjacent position of the fourth code window, and display the fifth code window at the idle adjacent position, for example, if a right adjacent position of the fourth code window is an idle adjacent position, the fifth code window can be displayed at the right adjacent position of the fourth code window, and then the user can adjust the display position of the fifth code window according to needs to realize comparative display. Through the splitting operation of the code window, a code window that is completely the same can be quickly copied and displayed, meeting the needs of the user for comparative display of different positions of two same code contents.

[0075] In some embodiments, the code management method can further include: in response to a theme setting operation of the first code tab page, displaying a plurality of first themes; and in response to a selection operation of a second theme in the plurality of first themes, switching the current theme to the second theme, wherein the second theme is provided with a corresponding background image and color parameters.

[0076] The theme setting operation can be an operation of triggering the setting of the visual theme of the tool, for example, a trigger operation of a theme setting control under a setting control in a code tab page. Each code tab page can be provided with a setting control to quickly set the theme in any code tab page. The first theme can be a theme provided by the Web code management tool for the user to select, and the number of the first themes can be multiple. The second theme can be a theme selected in the plurality of first themes, which can be a theme corresponding to the selection operation. The current theme can be a theme currently used by the Web code management tool. The background image can be a background image set by a theme, and different themes correspond to different background images. The color parameters can include colors set by a theme for various display elements, and the color parameters can include text color, component color, window color, chart color, etc. Different themes correspond to different color parameters, and the color parameters of a theme can belong to the same color system as the background image.

[0077] Specifically, the code management apparatus can receive a theme setting operation of the user in the first code tab page, display a plurality of first themes in a theme setting page, and after receiving a selection operation of a first theme by the user, determine the first theme as a second theme and switch the current theme to the second theme, for example, the current theme is a dark theme and the second theme is a light theme, and the dark theme is switched to the light theme.

[0078] An example is shown in the following table. Figure 7 A schematic diagram of a theme setting page provided by the embodiments of the present disclosure is shown in the following table. Figure 7As shown, a theme setting page 700 is displayed, which can be displayed after a user triggers a theme setting control 701 under a setting control of a T4 code tab page. The theme setting page 700 can include a plurality of first themes. A gesture in the figure indicates that the user selects a light theme, which is a second theme, to switch the current theme to the light theme.

[0079] In the above scheme, a plurality of themes affecting visual effects are set in the tool content. A user selects a desired theme according to preferences. The tool displays a page according to a background image and color parameters of the theme, so that the display effect is better and the user's needs are better met.

[0080] In this scheme, the Web code management tool can support one-key creation of a code tab page and a code window. The window supports autonomous arrangement of size and position. Core operation components are exposed and displayed. The overall layout of the page is clearer. The operation is more convenient. The user's use cost is reduced. The operation efficiency is improved. The framework uses block segmentation and container segmentation. One container corresponds to one code window. The information display efficiency and the operation efficiency are effectively improved. Multiple themes are built in to support theme switching. The visual effect is better. The user's diversified needs are better met.

[0081] Figure 8 A structural diagram of a code management device provided by the embodiments of the present disclosure is provided. The device can be implemented by software and / or hardware and can be integrated in an electronic device. As shown in the figure, Figure 8 The device includes:

[0082] A first creation module 801 is configured to create a plurality of code tab pages in response to a tab page creation operation.

[0083] A second creation module 802 is configured to create and display a plurality of first code windows in a first code tab page in response to a window creation operation on the first code tab page in the plurality of code tab pages.

[0084] A switching module 803 is configured to switch a second code window from a first position to a second position for display in response to a position switching operation on the second code window in the plurality of first code windows.

[0085] A management module 804 is configured to perform code management on a target model corresponding to a model setting operation and a target knowledge base corresponding to a knowledge base starting operation in the second code window in response to the model setting operation and the knowledge base starting operation on the second code window.

[0086] Optionally, the position switching operation includes a selection operation, a movement operation, and a release operation. The switching module 803 includes:

[0087] selecting a unit configured to display the second code window in a floating manner in response to a selection operation on the second code window;

[0088] moving a unit configured to display a preview window of the second code window above the second position in response to a moving operation on the second code window in the floating manner;

[0089] releasing a unit configured to move or reduce a third code window corresponding to the second position and switch the preview window of the second code window in the second position to display the second code window in response to a releasing operation on the second code window in the floating manner.

[0090] Optionally, the releasing unit is configured to:

[0091] move the third code window to a free adjacent position in response to the number of the third code windows being one and the second position having the free adjacent position;

[0092] reduce the at least one third code window in a target parameter in response to the number of the third code windows being at least one and the second position not having the free adjacent position, so that a sum of target parameters of the at least one third code window before the position switching operation is equal to a sum of target parameters of the at least one third code window and the second code window after the position switching operation, wherein the target parameter is width or height.

[0093] Optionally, the floating manner indicates that the second code window is displayed in a preset size and a preset transparency.

[0094] Optionally, each of the first code windows displays corresponding code content through a container, and at least one of corresponding tools, working modes, models and knowledge bases is set.

[0095] Optionally, the device further comprises a splitting module configured to:

[0096] copy the fourth code window in the first code tab page to obtain a fifth code window in response to a splitting operation on the fourth code window in the plurality of first code windows, and display the fifth code window at a free adjacent position of the fourth code window.

[0097] Optionally, the device further comprises a theme module configured to:

[0098] display a plurality of first themes in response to a theme setting operation on the first code tab page.

[0099] In response to a selection operation on a second theme in the plurality of first themes, the current theme is switched to the second theme, wherein the second theme is provided with a corresponding background image and color parameters.

[0100] The code management apparatus provided by the embodiments of the present disclosure can execute the code management method provided by any of the embodiments of the present disclosure, and has the corresponding function modules and advantages of executing the method.

[0101] The embodiments of the present disclosure also provide a computer program product, which comprises computer programs / instructions, and the computer programs / instructions are executed by a processor to implement the code management method provided by any of the embodiments of the present disclosure.

[0102] Figure 9 A structural schematic diagram of an electronic device provided by the embodiments of the present disclosure is provided. The following specifically refers to Figure 9 which shows a structural schematic diagram of an electronic device 900 suitable for implementing the embodiments of the present disclosure. The electronic device 900 in the embodiments of the present disclosure can include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 9 The electronic device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.

[0103] As shown in Figure 9 , the electronic device 900 can include a processing apparatus 901 (such as a central processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 902 or programs loaded from a storage apparatus 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing apparatus 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0104] In general, the following devices can be connected to the I / O interface 905: input devices 906, including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; output devices 907, including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 908, including, for example, a magnetic tape, a hard disk, and the like; and communication devices 909. The communication devices 909 can allow the electronic device 900 to communicate wirelessly or via a wire with other devices to exchange data. Although Figure 9 The electronic device 900 is shown with various devices, but it is understood that all of the illustrated devices are not required to implement or be present. More or fewer devices can alternatively be implemented or present.

[0105] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication devices 909, or installed from the storage devices 908, or installed from the ROM 902. When the computer program is executed by the processing devices 901, the above-described functions defined in the code management method of the embodiments of the present disclosure are executed.

[0106] It should be noted that the computer-readable medium described above in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium, for example, can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in baseband or propagated as a carrier wave in a propagated data signal, in which the computer-readable program code is contained. Such a propagated data signal can take many forms, including but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium that is not a storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to, wire, cable, radio frequency (RF), or any suitable combination thereof.

[0107] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as the HyperText Transfer Protocol (HTTP), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed network.

[0108] The computer-readable medium described above can be included in the electronic device described above; or can exist separately from the electronic device and can not be assembled into the electronic device.

[0109] The computer readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, cause the electronic device to: in response to a tab creation operation, create a plurality of code tabs; in response to a window creation operation on a first code tab in the plurality of code tabs, create and display a plurality of first code windows in the first code tab; in response to a position switching operation on a second code window in the plurality of first code windows, switch the second code window from a first position to a second position for display; and in response to a model setting operation and a knowledge base starting operation on the second code window, perform code management in the second code window based on a target model corresponding to the model setting operation and a target knowledge base corresponding to the knowledge base starting operation.

[0110] Computer program code for carrying out operations of the present disclosure can be written in any of one or more programming languages or combinations of languages including object or visual programming languages such as Java, Smalltalk, C++ or conventional procedural programming languages such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network or a wide area network, or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0111] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or in the reverse order, depending on the functionality involved. It is also noted that each block of the block diagrams and / or flow diagrams and combinations of blocks in the block diagrams and / or flow diagrams can be implemented by dedicated hardware-based systems that perform the specified functions or operations, or by combinations of dedicated hardware and computer instructions.

[0112] The units described in the embodiments of the present disclosure can be implemented by software or by hardware. In some cases, the names of the units do not limit the units themselves.

[0113] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application-Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0114] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory, read-only memory, erasable programmable read-only memory, flash memory, fiber optics, portable compact disc read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0115] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type of information involved in the present disclosure, the range of use, the scene of use, etc. should be informed to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations.

[0116] The above description is merely preferred embodiments of the present disclosure and a description of the principles of the technology used. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or equivalent features without departing from the above disclosed concept. For example, the technical solutions formed by replacing the above features with technical features disclosed in the present disclosure (but not limited to) having similar functions.

[0117] Moreover, while operations are depicted in a particular order, this should not be understood as requiring such an order nor infringing on the scope of the disclosure. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, while several specific implementation details have been discussed, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.

[0118] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims

1. A code management method characterized by, The method comprises: in response to a tab creation operation, creating a plurality of code tabs; in response to a window creation operation on a first code tab in the plurality of code tabs, creating and displaying a plurality of first code windows in the first code tab; in response to a position switching operation on a second code window in the plurality of first code windows, switching the second code window from a first position to a second position for display; in response to a model setting operation and a knowledge base starting operation on the second code window, performing code management in the second code window based on a target model corresponding to the model setting operation and a target knowledge base corresponding to the knowledge base starting operation.

2. The method of claim 1, wherein, The position switching operation comprises a selection operation, a movement operation, and a release operation. In response to the position switching operation on the second code window in the plurality of first code windows, the second code window is switched from the first position to the second position for display, comprising: in response to the selection operation on the second code window, displaying the second code window in a floating style; in response to the movement operation on the second code window in the floating style, displaying a preview window of the second code window above the second position; in response to the release operation on the second code window in the floating style, moving or reducing a third code window corresponding to the second position, and switching the preview window of the second code window at the second position to the second code window for display.

3. The method of claim 2, wherein, The moving or reducing of the third code window corresponding to the second position comprises: in response to the number of the third code windows being one and the second position having a free adjacent position, moving the third code window to the free adjacent position; in response to the number of the third code windows being at least one and the second position not having a free adjacent position, reducing the at least one third code window by a target parameter, so that the sum of target parameters of the at least one third code window before the position switching operation is equal to the sum of target parameters of the at least one third code window and the second code window after the position switching operation, wherein the target parameter is width or height.

4. The method of claim 2, wherein, The floating style means that the second code window is displayed in a preset size and a preset transparency.

5. The method of claim 1, wherein, Each of the first code windows displays corresponding code content through a container, and at least one of corresponding tools, working modes, models, and knowledge bases is set.

6. The method of claim 1, wherein, The method further comprises: in response to a splitting operation on a fourth code window in the plurality of first code windows, copying the fourth code window to obtain a fifth code window in the first code tab, and displaying the fifth code window at a free adjacent position of the fourth code window.

7. The method of claim 1, wherein, The method further comprises: in response to a theme setting operation on the first code tab, displaying a plurality of first themes; in response to a selection operation on a second theme in the plurality of first themes, switching the current theme to the second theme, wherein the second theme is provided with a corresponding background image and color parameters.

8. A code management apparatus characterized by comprising: The method comprises: A first creating module, configured to create a plurality of code tabs in response to a tab creating operation; A second creating module, configured to create and display a plurality of first code windows in a first code tab in response to a window creating operation on the first code tab among the plurality of code tabs; A switching module, configured to display a second code window in a second position in response to a position switching operation on the second code window among the plurality of first code windows; A management module, configured to perform code management in the second code window based on a target model corresponding to a model setting operation and a target knowledge base corresponding to a knowledge base starting operation in response to the model setting operation and the knowledge base starting operation on the second code window.

9. An electronic device, comprising: The electronic device comprises: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the code management method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program is configured to execute the code management method according to any one of claims 1-7.