当前位置:网站首页>I'm sure! You haven't used a code artifact yet. It only belongs to creator users!

I'm sure! You haven't used a code artifact yet. It only belongs to creator users!

2021-08-08 15:44:53 wx5d33905354cb6

Today I recommend one for you “ As fast as thunder , Like lightning ” Of Code editor : Flash - Code editor   The flash editor is based on VSCode kernel , At the same time for Cocos Creator Tailored , And support 2.x 、3.0 edition ! watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
The default window is opened Automatic expansion and contraction function , Recommended layout

watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=

Original intention of design

Built in code editor, this plug-in , It was originally intended to implement codeless file programming , stay Creator Inner Click Node You can edit the built-in code block directly in the property panel .

However, it is difficult to implement the built-in code block , Give up this practice .

「 Now, after modification, edit the built-in code block to edit Node Binding script 」

The experience of plug-ins :

  1. Modify the code file bound on the currently open scene or interface , Edit content directly ;
  2. Easy to copy UI name 、 Parameters to nodes or vice versa ;
  3. Easy to create UI Property drag ;
  4. It is convenient to display information by comparing the interface while writing code
  5. Click the new code template and bind to the node , And display the code content and edit it directly , One stop service
  6. One click to generate drag variables , And bind components or resources
  7. Don't be in vscode、creator、 browser , Frequent switching between the three

The main functions of the plug-in are

  1. Memorandum ( Start the first page of the plug-in )
  2. vscode Mini search bar ( Used to open a file 、 scene , Shortcut key [v])
  3. vscode Code editor function
  4. Command mode ( Directly run the code in debugging and editing , Shortcut key [Alt+E] or [Com+E])
  5. Simulation run debugging ( similar U3D Preview effect , Shortcut key [Shift+Alt+E])
  6. Game run preview window ( Shortcut key [F11])
  7. Search for unused resources ( Used to clean up unused files , Shortcut key [Alt+L]

Auxiliary editing function :

  1. Quickly generate scripts and bind nodes ( Select the node in the scene with the mouse and press [F3] Quickly generate scripts and bind , The script is generated in the same level directory of the scene . The format of generated code template can be configured in settings )
  2. CHB Renamer ( Press... When the mouse selects a node or file [D] Open the rename interface , Rename... In order when finished )
  3. Batch binding components ( Press... When the mouse selects a node [G] Open the component interface , When finished, bind the component to the node )
  4. Batch insert prefabricated nodes ( Press... When the mouse selects a node [A] Open the prefabricated node interface , Insert prefabricated nodes into the scene after completion )
  5. Quick batch deletion of nodes and binding scripts ( Select the node with the mouse and press [Alt+Shift+Enter] A confirmation interface pops up for deletion )
  6. Shortcut Directory ( Can be ’ Folder ’ binding ’ Number keys, shortcut keys ’, Jump to the specified directory by pressing the number key . Usage method : Bind the shortcut key after selecting the folder :[Alt+0-9] Bind the specified numeric key label , Press [0~9] Jump to the bound folder location )
  7. Select the file resource and press [X] shear , Press [C] Paste file . Quickly move files with shortcut directory
  8. Shortcut key node ( Press [Alt+~] You can save the selection status of all nodes in the current scene , Press down [~] Return to the previously saved node selection state )
  9. Batch select nodes with the same name ( Similar to vscode Press Ctrl+D Batch select nodes with the same name , Quick operation [S] or [Alt+D])
  10. Batch search the child nodes of the selected node ( Used to quickly batch select nodes with specified names , Quick operation [F])

project management :

  1. [Alt+F1] Open the project directory
  2. [Alt+F2] Open the project directory to an external editor , The editor path configuration opens in the configuration shortcut options
  3. [Alt+F3] Open the project directory to Creator New window
  4. There are other configuration shortcuts 、 Templates 、 Code input prompt settings .

Code editing function :

  1. TS/JS Code prompt function is better than vsode Better , Support import/require Introduction of module code tips
  2. built-in creator.d.ts file cocos api Tip: out of the box , Support TS/JS
  3. Support the function name cross file prompt in the game project
  4. Support variable reference location search 、 Jump
  5. Support Ctrl+ Click on Jump to the file location declared by the object member
  6. Support json/js/ts Document formatting
  7. Remember to turn off the creator Before opening the code , restart Creator Recover code label , Quickly enter the last working state ;
  8. Support [Ctrl+Shift+O] Function jump …, Dozens of other functions vscode identical , I'm not going to introduce it
  9. Supports importing custom files xxxx_api.d.ts Code declaration file , Usage method :d.ts Place the declaration file in the project root directory ( And assets Folder siblings ), And then restart Creator that will do
  10. Support Vim Edit mode

Novice tutorial

  1. from Creator After the plug-in store downloads and installs this plug-in , Press F1 Open the code editing panel , Then drag the panel window to Creator Inside ;
  2. Select the scene editor with binding script Node, Then start editing the binding code directly , As shown in the figure below ;
  3. Select the scene to edit Node, Press down F3 Click the new code template and bind to the node , And display the code content and edit it directly , One stop service ;

 

 

watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=


Author plugin QQ Group :569081407

 

版权声明
本文为[wx5d33905354cb6]所创,转载请带上原文链接,感谢
https://chowdera.com/2021/08/20210808154017095O.html

随机推荐