Go to file
zhangyun b6cf2871de 解决远程模式下源安装无响应问题;删除Notice太大导致无法构建打包;增加项目类型根据os类型过滤的配置和过滤支持; 2024-09-26 19:23:56 +08:00
.vscode 三方库依赖添加中 2024-08-02 18:55:42 +08:00
media 修改cmake配置三方库后,设置项目时的未实现功能;修改C标准默认值bug;修改launch解析按钮悬停提示支持; 2024-09-23 18:21:20 +08:00
src 解决远程模式下源安装无响应问题;删除Notice太大导致无法构建打包;增加项目类型根据os类型过滤的配置和过滤支持; 2024-09-26 19:23:56 +08:00
static 支持创建Go语言项目(makefile/cmake) 2024-09-20 14:03:11 +08:00
templates 修改一些问题;补充修改Readme/描述、增加Notice.txt文件等 2024-09-25 16:41:40 +08:00
web 解决远程模式下源安装无响应问题;删除Notice太大导致无法构建打包;增加项目类型根据os类型过滤的配置和过滤支持; 2024-09-26 19:23:56 +08:00
.eslintrc.json init 2022-08-09 12:24:45 +08:00
.gitignore 去掉settings.json同步 2024-04-07 11:03:49 +08:00
.vscodeignore 解决远程模式下源安装无响应问题;删除Notice太大导致无法构建打包;增加项目类型根据os类型过滤的配置和过滤支持; 2024-09-26 19:23:56 +08:00
.yarnrc init 2022-08-09 12:24:45 +08:00
CHANGELOG.md 修改一些问题;补充修改Readme/描述、增加Notice.txt文件等 2024-09-25 16:41:40 +08:00
LICENSE.txt 更新license、补充compile任务脚本 2023-10-17 11:17:51 +08:00
README.md 修改一些问题;补充修改Readme/描述、增加Notice.txt文件等 2024-09-25 16:41:40 +08:00
depends.json 修改服务器依赖 2023-11-09 00:25:37 -08:00
package-lock.json 三方库依赖添加中 2024-08-02 18:55:42 +08:00
package.json 解决远程模式下源安装无响应问题;删除Notice太大导致无法构建打包;增加项目类型根据os类型过滤的配置和过滤支持; 2024-09-26 19:23:56 +08:00
package.nls.json 修改一些问题;补充修改Readme/描述、增加Notice.txt文件等 2024-09-25 16:41:40 +08:00
package.nls.zh-cn.json 修改一些问题;补充修改Readme/描述、增加Notice.txt文件等 2024-09-25 16:41:40 +08:00
tsconfig.json 修正第二页空白问题 2022-10-10 15:39:31 +08:00
vsc-extension-quickstart.md init 2022-08-09 12:24:45 +08:00
webpack.config.js 修改项目框架结构,引入webpack构建,缩小打包后大小 2022-10-18 15:25:48 +08:00
yarn.lock 解决远程模式下源安装无响应问题;删除Notice太大导致无法构建打包;增加项目类型根据os类型过滤的配置和过滤支持; 2024-09-26 19:23:56 +08:00

README.md

项目管理器 Kylin Project Manager

中文|English

中文说明

1、插件安装

  • 通过插件筛选器,找到 Kylin Project Manager 插件
  • 点击安装
  • 完成安装。
  • 如果是版本升级则需要重新加载主程序插件才生效,请根据提示操作完成安装。

2、项目管理插件操作区

  • 在资源管理器展开“项目操作区”
  • 基本操作:提供项目创建、配置、构建、调试、运行等相关功能入口;
  • 执行任务通过解析当前工作区第一个项目的tasks.json显示各个任务按钮悬停显示任务信息点击可以执行具体任务。
  • 执行调试通过解析当前工作区第一个项目的launch.json显示各个调试按钮悬停显示调试信息点击可以进入调试页面执行该调试。
  • 执行CMake/Makefile通过通过解析当前工作区第一个项目的CMakeLists.txt/Makefile显示各个构建工具命令点击调起终端执行。
  • 执行Node.js脚本通过解析当前工作区第一个项目的package.json显示脚本按钮悬停显示脚本信息点击调起终端通过npm执行。
  • 如果项目内容发生变化,可点击右上角刷新图标刷新操作区;

3、创建新的项目

  • 点击“创建新的项目”,也可以通过 Ctrl+Shift+P 调起命令窗口输入“创建项目”或“project.createProject”选择 PROJECT:创建项目,调起页面。
  • 在右侧编辑区弹出“创建项目”页面。
  • 页面内包括:
    • 语言类型选择(可以选择过滤不同的语言)
    • 标签过滤器(可以选择不同的标签对于项目类型进行过滤,支持多选)
    • Demo项目列表
      • 可以点击Demo项目图标进入对应的Demo项目创建页面。
    • Demo项目创建
      • 显示当前Demo项目的录入内容页面。
      • 提供 关闭、上一步/下一步、创建 等功能按钮。
      • 提供“开发环境快速部署”入口。

3.1、创建C/C++项目

  • 在资源管理器展开“项目操作区”
  • 点击“创建新的项目”,也可以通过 Ctrl+Shift+P 调起命令窗口输入“创建项目”或“project.createProject”选择 PROJECT:创建项目,调起页面。
  • 在右侧编辑区弹出“创建项目”页面。
  • 选择C语言控制台应用项目/C语言库项目/C++语言控制台应用项目/C++语言GUI图形应用项目/C++语言库项目可以进入C/C++语言项目创建

3.1.1、第一页 选择项目类型

  • 点击“项目类型”
  • 可以切换选择支持的项目类型。
  • 点击“项目构建方式”
  • 可以切换选择支持的项目构建方式如“makefile”、“cmake”等。
  • 点击下一页

3.1.2、第二页 项目基本信息

  • 输入合法项目名称(必填)
  • 选择项目目录(必填)
  • 输入更多信息
  • 点击下一页

3.1.3、第三页 编译链接库选项

  • 选择C/C++语言标准
  • 选择三方库引用
  • 更多编译参数
  • 点击下一页

3.1.3、第四页 更多选项

  • 输入合法编译输出文件名(必填)
  • 调试运行参数
  • 是否检查项目依赖
  • 点击创建

3.1.4、创建成功

  • 弹出 C/C++环境检查通过提示
  • 弹出创建项目成功提示
  • 弹出询问在当前窗口打开新项目还是新建窗口打开?
  • 打开新项目页面
  • 点击“是,我信任此作者”,即可进行后续项目编写使用。

3.2、创建Java项目

  • 在资源管理器展开“项目操作区”
  • 点击“创建新的项目”,也可以通过 Ctrl+Shift+P 调起命令窗口输入“创建项目”或“project. createProject”选择 PROJECT:创建项目,调起页面。
  • 在右侧编辑区弹出“创建项目”页面。
  • 选择Java项目

3.2.1、输入信息

  • 输入合法项目名称(必填)
  • 选择项目目录(必填)
  • 选择系统已有JDK目录或切换输入JDK 目录(必填)
  • 输入“输出目录”
  • 点击创建

3.2.2、创建成功

  • 弹出创建项目成功提示
  • 弹出询问在当前窗口打开新项目还是新建窗口打开?
  • 打开新项目页面
  • 点击“是,我信任此作者”,即可进行后续项目编写使用。

3.3、基于Maven的Java项目

  • 检查maven插件安装未安装弹出安装提示
  • 安装完成或已安装点击进入maven插件的项目创建流程

3.4、基于Gradle的Java项目

  • 检查gradle插件安装未安装弹出安装提示
  • 安装完成或已安装点击进入gradle插件的项目创建流程

3.5、基于maven构建javafx项目

  • 检查maven插件安装未安装弹出安装提示
  • 安装完成或已安装点击进入maven插件的 创建javaFx的DEMO项目流程

3.6、构建SpringBoot项目

  • 检查springBoot插件安装未安装弹出安装提示
  • 安装完成或已安装点击进入springBoot插件的项目创建流程

3.7、创建Python控制台应用项目

  • 在资源管理器展开“项目操作区”
  • 点击“创建新的项目”,也可以通过 Ctrl+Shift+P 调起命令窗口输入“创建项目”或“project. createProject”选择 PROJECT:创建项目,调起页面。
  • 在右侧编辑区弹出“创建项目”页面。
  • 选择Python控制台应用项目

3.7.1、输入信息

  • 输入合法项目名称(必填)
  • 选择项目目录(必填)
  • 输入“执行文件”,用来生成 [执行文件].py文件
  • 点击创建

3.7.2、创建成功

  • 弹出创建项目成功提示
  • 弹出询问在当前窗口打开新项目还是新建窗口打开?
  • 打开新项目页面
  • 点击“是,我信任此作者”,即可进行后续项目编写使用。

3.8、创建JavaScript控制台应用项目

  • 在资源管理器展开“项目操作区”
  • 点击“创建新的项目”,也可以通过 Ctrl+Shift+P 调起命令窗口输入“创建项目”或“project. createProject”选择 PROJECT:创建项目,调起页面。
  • 在右侧编辑区弹出“创建项目”页面。
  • 选择JavaScript控制台应用项目

3.8.1、输入信息

  • 输入合法项目名称(必填)
  • 选择项目目录(必填)
  • 输入“执行文件”,用来生成 [执行文件].py文件
  • 点击创建

3.8.2、创建成功

  • 弹出创建项目成功提示
  • 弹出询问在当前窗口打开新项目还是新建窗口打开?
  • 打开新项目页面
  • 点击“是,我信任此作者”,即可进行后续项目编写使用。

3.9、Go项目

  • 在资源管理器展开“项目操作区”
  • 点击“创建新的项目”,也可以通过 Ctrl+Shift+P 调起命令窗口输入“创建项目”或“project. createProject”选择 PROJECT:创建项目,调起页面。
  • 在右侧编辑区弹出“创建项目”页面。
  • 选择Go项目

3.9.1、输入信息

  • 选择支持的项目构建方式如“makefile”、“cmake”等。
  • 输入合法项目名称(必填)
  • 选择项目目录(必填)
  • 输入“编译输出文件”
  • 点击创建

3.9.2、创建成功

  • 弹出创建项目成功提示
  • 弹出询问在当前窗口打开新项目还是新建窗口打开?
  • 打开新项目页面
  • 点击“是,我信任此作者”,即可进行后续项目编写使用。

4、配置当前项目

4.1、配置C/C++项目

  • 打开刚才创建的 C/C++项目 testC
  • 点击“配置当前项目”
  • 在右侧编辑区弹出“配置项目”页面。
  • 可修改项目构建输出文件内容。
  • 可选择修改构建、调试、运行参数。
  • 第二页点击保存,显示“保存成功”。完成项目构建、调试、运行参数的配置。

4.1.1、配置详细介绍

  • 项目识别: 包含vsproject.ide.json文件内容为json数据

    • 有"language"属性

      属性值为"c"、"c++"

    • 有"buildTools"属性

      属性值为"makefile"、"cmake"

  • tasks.json配置文件

    • 文件位置:.vscode/

    • 文件作用:用来告诉 IDE 如何构建(编译)程序

    • testC项目的tasks.json实例

      说明该build脚本用来实现对testC项目进行构建本实例是通过makefile实现构建。

        {
        "version": "2.0.0",
        "tasks": [
          {
          "label": "build",
          "type": "shell",
          "group": {
            "kind": "build",
            "isDefault": true
          },
          "linux": {
            "command": "bash",
            "args": [
            "-c",
            "make"
            ]
          }
          },
          ...
        ]
        }
      
      
    • Makefile 与配置关系 本testC项目中Makefile文件内预制了编译和运行参数。 例如:

      • 用户在配置页面修改“编译输出文件”内容,并保存时。 实际Makefile文件内的 KConfig_outputFileName 值会跟随改变。 这样当IDE执行项目编译调用tasks.json的build项执行make build时实际生成的编译输出文件会跟随Makefile文件内的KConfig_outputFileName 定义而改变。

          # KylinCode 编译配置项
          KConfig_outputFileName = main
          KConfig_compileDebugLevel = -g
          KConfig_WarningLevel = 
          KConfig_OptimizeLevel = 
          KConfig_ExtraPara = 
          KConfig_IncludesPath = 
          KConfig_LibraryPath = 
          KConfig_Libraries = 
          KConfig_Standard =  
        
        
      • 其他配置项修改原理与“编译输出文件”相同。

      • cmake类型与makefile原理相同。

4.2、配置Java项目

  • 打开刚才创建的 Java 项目 testJava

  • 点击“配置当前项目”

  • 在右侧编辑区弹出“配置项目”页面。

  • 打开调试配置文件 launch.json如下代码。用来支持java项目的调试功能。

    {
      "version": "0.2.0",
      "configurations": [
          {
              "type": "java",
              "name": "Launch Current File",
              "request": "launch",
              "mainClass": "${file}",
              "args": ""
          },
          {
              "type": "java",
              "name": "Launch App",
              "request": "launch",
              "mainClass": "testgradle.App",
              "projectName": "app"
          }
      ]
    }
    
  • 打开任务文件 tasks.json如下文用来支持项目的编译和调试功能

    {
        "version": "2.0.0", 
        "tasks": [
            {
                "label": "build", 
                "type": "shell", 
                "options": {
                    "cwd": "${workspaceFolder}"
                }, 
                "command": "javac", 
                "args": [
                    "src/main.java",
                    "-sourcepath",
                    "src",
                    "-classpath",
                    "${config:java.project.referencedLibraries}",
                    "-d", 
                    "${config:java.project.outputPath}"
                ]
            }, 
            {
                "label": "run", 
                "type": "shell", 
                "options": {
                    "cwd": "${workspaceFolder}"
                }, 
                "command": "java", 
                "args": [
                    "-cp", 
                    "${config:java.project.outputPath}", 
                    "main"
                ], 
                "dependsOn": [
                    "javac"
                ]
            }, 
            {
                "label": "clean", 
                "type": "shell", 
                "options": {
                    "cwd": "${workspaceFolder}"
                }, 
                "command": "rm $(find . -name \"*.class\")"
            }
        ]
    }
    
  • 打开 Java 类路径配置

    可以修改源码路径、输出路径、添加依赖库等修改结果会保存在settings.json

  • 打开打开工作区设置页。

  • 打开工作区设置 json 文件。

4.3、配置Other项目

  • 打开其他类型的测试项目
  • 点击“配置当前项目”
  • 在右侧编辑区弹出“配置项目”页面。

包括以下:

  • 打开调试配置文件launch.json点击可以打开文件编辑调试配置。如当前项目没有会弹出创建选择 创建方法如下:

    • 点击菜单中的运行->添加配置
  • launch.json文件创建成功

  • 打开任务文件 tasks.json点击可以打开文件编辑编译、运行等任务。如果当前项目没有会弹出创建选择

    创建方法如下:

    • 点击菜单中的终端->配置任务->使用模板创建tasks.json文件->others

    • tasks.json文件创建成功

      创建的tasks.json默认内容如下

      {
      // See https://go.microsoft.com/fwlink/?LinkId=733558
      // for the documentation about the tasks.json format
      "version": "2.0.0",
      "tasks": [
          {
              "label": "echo",
              "type": "shell",
              "command": "echo Hello"
          }
        ]
      }
      
    • 根据项目情况修改tasks.json文件以testJava为例修改后内容如下

      {
          "label": "build", 
          "type": "shell", 
          "options": {
              "cwd": "${workspaceFolder}"
          }, 
          "command": "javac", 
          "args": [
              "src/main.java",
              "-sourcepath",
              "src",
              "-classpath",
              "${config:java.project.referencedLibraries}",
              "-d", 
              "${config:java.project.outputPath}"
          ]
      }, 
      {
          "label": "run", 
          "type": "shell", 
          "options": {
              "cwd": "${workspaceFolder}"
          }, 
          "command": "java", 
          "args": [
              "-cp", 
              "${config:java.project.outputPath}", 
              "main"
          ], 
          "dependsOn": [
              "javac"
          ]
      }
      

      修改后,即可支持通过任务进行构建、运行等操作。

5、构建

构建功能入口,为项目开发提供快捷操作。

  • 依赖.vscode/tasks.json 文件定义。
  • 点击会打开tasks.json的 build项目执行通过终端执行构建。
  • 如果基于cmake工具且cmake-tools插件已安装则会弹出选择“使用CMake tools构建”或“使用build任务构建”根据用户选择决定。

6、运行

运行功能入口,为项目开发提供快捷操作。

  • 依赖.vscode/tasks.json 文件定义。
  • 点击会打开tasks.json的所有项目选择run项目选择继续而不扫描任务输出通过终端执行程序运行。
  • 如果基于cmake工具且cmake-tools插件已安装则会弹出选择“使用CMake tools运行”或“使用run任务运行”根据用户选择决定。

7、调试

调试功能入口,点击进入“调试”功能

  • 依赖.vscode/launch.json文件

  • 点击“调试”按钮,进入调试页面。

  • 如图此时项目没有launch.json文件。

  • 点击“创建 launch.json 文件。

  • 弹出选择调试器,请根据项目类型选择相应的调试器。

  • 创建完成会进入运行调试页面。可以按项目需要修改launch.json可以点击左侧选择需要的调试配置项

  • 点击绿色三角开始调试。

8、插件依赖说明

  • java
    • openjdk 11+
  • 打包:
    • dpkg
    • rpm
    • maven 3.6.3+

9、下载链接

10、源码构建说明

10.1 yarn 失败

配置淘宝源
 yarn config set registry http://registry.npmmirror.com/

10.2 插件构建

cd ${projectpath}/web
yarn
cd ${projectpath}/
yarn
yarn run compile

10.3 打包

cd ${projectpath}/
yarn
yarn run compile
yarn run package

EnglishDescription

Introduction

1. Extension installation

  • Find the Kylin Project Manager extension through the extension filter

  • Click to install

  • Complete the installation.

  • If it is a version upgrade, the main program extension needs to be reloaded to take effect. Please follow the prompts to complete the installation.

2. Project management extension operation area

  • Expand the "Project Operations Area" in Explorer

  • Basic operation: Provide entry points for project creation, configuration, construction, debugging, running functions;

  • Task Execution: By parsing the tasks.json of the first project in the current workspace, display various task buttons, hover to display task information, and click to execute specific tasks.

  • Debugging execution: By parsing the launch. json of the first project in the current workspace, display various debugging buttons, hover to display debugging information, and click to enter the debugging page to execute the debugging.

  • Execute CMake/Makefile: Display various build tool commands by parsing the first project's CMakeLists.txt/Makefile in the current workspace, and click to start terminal execution.

  • Execute a Node.js script: By parsing the package.json of the first project in the current workspace, display the script button, hover to display the script information, and click to launch the terminal for execution via npm.

  • If the project content changes, you can click the refresh icon in the upper right corner to refresh the operation area;

3. Create new project

  • Click on "Create New Project" or use Ctrl+Shift+P to bring up a command window, enter "Create Project" or "project. createProject", select PROJECT: Create Project, and bring up the page.

  • The "Create Project" page pops up in the editing area on the right.

  • The page includes:

    • Language type selection (can choose to filter different languages)

    • Tag filter (can select different tags to filter project types, supports multiple selections)

    • List of Demo Projects

    • You can click on the Demo project icon to enter the corresponding Demo project creation page.

    • Demo project creation

    • Display the input content page of the current demo project.

    • Provide buttons for closing, previous/next, creating, and other functions.

    • Provide an entrance for "rapid deployment of development environment".

4. Configure the current project

4.1. Configuring C/C++Projects

  • Open the C/C++project you just created, testC

  • Click on 'Configure Current Project'

  • The "Configuration Items" page pops up in the editing area on the right.

  • The content of the project compilation output file can be modified.

  • You can choose to modify compilation, debugging, and running parameters.

  • On the second page, click Save and the message 'Save Successfully' will appear. Complete project compilation, debugging, and configuration of running parameters.

4.2. Configuring Java Projects

  • Open the Java project you just created, testJava

  • Click on 'Configure Current Project'

  • The "Configuration Items" page pops up in the editing area on the right.

  • Open the debugging configuration file launch.json,

  • Open the task file tasks.json,

  • Open Java class path configuration

You can modify the source code path, output path, add dependency libraries, etc; The modification results will be saved in settings.json

  • Open the workspace settings page.

  • Open the workspace settings JSON file.

4.3. Configure Other Project

  • Open other types of test projects

  • Click on 'Configure Current Project'

  • The "Configuration Items" page pops up in the editing area on the right.

Including the following:

  • Open the debugging configuration file launch.json, click to open the file and edit the debugging configuration. (If the current project does not have one, a create selection will pop up)

5. Compilation

Compilation function entry, providing quick operations for project development.

  • Dependency on the. vscode/tasks.json file definition.

  • Clicking will open the build project execution for tasks.json, which will be compiled through the terminal.

6. Operation

Run the function entry to provide quick operations for project development.

  • Dependency on the. vscode/tasks.json file definition.

  • Clicking will open all the projects in tasks.json, select the run project, choose to continue without scanning the task output, and run the program through the terminal execution.

7. Debugging

Debug function entry, click to enter the "Debug" function

  • Dependency on the. vscode/launch.json file

  • Click the "Deb

8. Extension Dependencies

  • Java:
    • OpenJDK 11+
  • Packaging:
    • dpkg
    • rpm
    • Maven 3.6.3+

10. Source Code Build Instructions

10.1 Yarn Failure

Configure Taobao registry
yarn config set registry http://registry.npmmirror.com/

10.2 Extension Build

cd ${projectpath}/web
yarn
cd ${projectpath}/
yarn
yarn run compile

10.3 Packaging

cd ${projectpath}/
yarn
yarn run compile
yarn run package