当前位置: 首页 > news >正文

网站建设进项填那个服务网站后台编辑器控件下载

网站建设进项填那个服务,网站后台编辑器控件下载,世界500强企业关于优秀员工的12条核心标准,河南省住房和城乡建设厅写在前面 优点: 开发提效:点击页面上的 DOM 元素,它能自动打开 IDE 并将光标定位至 DOM 的源代码位置,大幅提升开发体验和效率简单易用:对源代码无任何侵入,只需要在打包工具中引入就能够生效&#xff0c…

在这里插入图片描述

写在前面

优点:

  1. 开发提效:点击页面上的 DOM 元素,它能自动打开 IDE 并将光标定位至 DOM 的源代码位置,大幅提升开发体验和效率
  2. 简单易用:对源代码无任何侵入,只需要在打包工具中引入就能够生效,整个接入过程如喝水般一样简单
  3. 适配性强:支持在 webpack/vite/rspack/nextjs/nuxt/umijs 中使用,支持 vue/react/preact/solid/qwik/svelte/astro 等多个框架

code-inspector-plugin


📖 介绍

点击页面上的元素,能够自动打开你的代码编辑器并将光标定位到元素对应的代码位置。

code-inspector

💻 在线体验

  • vue online demo
  • react online demo
  • preact online demo
  • solid online demo
  • qwik online demo
  • svelte online demo
  • astro online demo

🎨 支持列表

当前支持的编译器、web 框架以及 IDE 如下:

  • 当前支持以下打包工具

    ✅ webpack

    ✅ vite

    ✅ rspack / rsbuild

    ✅ next.js / Nuxt / Umijs 等
  • 当前支持以下 Web 框架

    ✅ vue2

    ✅ vue3

    ✅ react

    ✅ preact

    ✅ solid

    ✅ qwik

    ✅ svelte

    ✅ astro
  • 当前支持以下代码编辑器

    VSCode | Cursor | WebStorm | Atom | HBuilderX | PhpStorm | PyCharm | IntelliJ IDEA | 以及其他 IDE

🚀 安装

npm i code-inspector-plugin -D
# or
yarn add code-inspector-plugin -D
# or
pnpm add code-inspector-plugin -D

🌈 使用

完整的接入及使用方式请查看:code-inspector-plugin 配置

  • 1.配置打包工具

    点击展开查看 webpack 项目配置
    // webpack.config.js
    const { codeInspectorPlugin } = require('code-inspector-plugin');module.exports = () => ({plugins: [codeInspectorPlugin({bundler: 'webpack',}),],
    });
    
    点击展开查看 vite 项目配置
    // vite.config.js
    import { defineConfig } from 'vite';
    import { codeInspectorPlugin } from 'code-inspector-plugin';export default defineConfig({plugins: [codeInspectorPlugin({bundler: 'vite',}),],
    });
    
    点击展开查看 rspack 项目配置
    // rspack.config.js
    const { codeInspectorPlugin } = require('code-inspector-plugin');module.exports =  = {// other config...plugins: [codeInspectorPlugin({bundler: 'rspack',}),// other plugins...],
    };
    
    点击展开查看 rsbuild 项目配置
    // rsbuild.config.js
    const { codeInspectorPlugin } = require('code-inspector-plugin');module.exports = {// other config...tools: {rspack: {plugins: [codeInspectorPlugin({bundler: 'rspack',}),],},},
    };
    
    点击展开查看 vue-cli 项目配置
    // vue.config.js
    const { codeInspectorPlugin } = require('code-inspector-plugin');module.exports = {// ...other codechainWebpack: (config) => {config.plugin('code-inspector-plugin').use(codeInspectorPlugin({bundler: 'webpack',}));},
    };
    
    点击展开查看 nuxt 项目配置

    nuxt3.x :

    // nuxt.config.js
    import { codeInspectorPlugin } from 'code-inspector-plugin';// https://nuxt.com/docs/api/configuration/nuxt-config
    export default defineNuxtConfig({vite: {plugins: [codeInspectorPlugin({ bundler: 'vite' })],},
    });
    

    nuxt2.x :

    // nuxt.config.js
    import { codeInspectorPlugin } from 'code-inspector-plugin';export default {build: {extend(config) {config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' }));return config;},},
    };
    
    点击展开查看 next.js 项目配置
    // next.config.js
    const { codeInspectorPlugin } = require('code-inspector-plugin');const nextConfig = {webpack: (config, { dev, isServer }) => {config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' }));return config;},
    };module.exports = nextConfig;
    
    点击展开查看 umi.js 项目配置
    // umi.config.js or umirc.js
    import { defineConfig } from '@umijs/max';
    import { codeInspectorPlugin } from 'code-inspector-plugin';export default defineConfig({chainWebpack(memo) {memo.plugin('code-inspector-plugin').use(codeInspectorPlugin({bundler: 'webpack',}));},// other config
    });
    
    点击展开查看 astro 项目配置
    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    import { codeInspectorPlugin } from 'code-inspector-plugin';export default defineConfig({vite: {plugins: [codeInspectorPlugin({ bundler: 'vite' })],},
    });
    
  • 2.配置 vscode 命令行工具

    Tip: Windows 或者其他 IDE 可跳过

    仅当你的电脑为 Mac 且使用 vscode 作为 IDE 时需要配置此步,电脑为 Windows 或者使用其他 IDE 可以跳过此步。

    在 VSCode 中执行 command + shift + p 命令, 搜索并点击 Shell Command: Install 'code' command in PATH:

    如果出现如下弹窗,说明配置成功了:

  • 3.使用功能

    在页面上按住组合键时,鼠标在页面移动即会在 DOM 上出现遮罩层并显示相关信息,点击一下将自动打开 IDE 并将光标定位到元素对应的代码位置。 (Mac 系统默认组合键是 Option + Shift;Window 的默认组合键是 Alt + Shift,在浏览器控制台会输出相关组合键提示)

http://www.yayakq.cn/news/334321/

相关文章:

  • 查询网站注册信息wordpress 文章调用js
  • 网站怎么留住用户宁波机械加工网
  • php网站开发设计模式怎么在百度上添加自己的店铺地址
  • 哈尔滨市做淘宝的网站深圳建设网站首页
  • 杭州网站建设 巴零Wordpress分析插件
  • 网站建设公司价格表大型企业网站建设制作
  • 您身边的网站建设专家wordpress扫码验证下载
  • 百度小程序跟做网站网站建设招标范文
  • 临沂地区建站网站网页制作详细设计
  • 青羊区企业网站建设策划品牌网站建设權威大蝌蚪
  • 旅游找什么网站好产品定制网站开发
  • 帮人管理网站做淘宝客wordpress xml插件
  • 网站建设策划书模板下载怎么寻找网站关键词并优化
  • 屯留做网站哪里好我买了一个备案网站 可是公司注销了
  • html5 网站网站建设苏州
  • 建设主题网站的顺序是什么意思wordpress加密功能
  • 北京网站建设公司 网络服务海南新闻在线新闻中心
  • aspx网站html静态化怎么做app应用下载网站源码
  • 智能建站服务平台好用的ppt模板网站
  • 网站三网合一案例做网站都需要准备什么软件
  • 建站宝盒建网站wordpress表格样式
  • 网站建设及优化一个人做网站可以做什么
  • 沧州什么地方可以学建网站教育培训机构加盟
  • 做袜子娃娃的网站呼伦贝尔网站制作
  • 填写网站备案信息国家企业信用公示(上海)
  • 站内优化主要从哪些方面进行西安十大平面广告设计公司
  • 网站管理助手打开是系统参数配置建设银行的网站用户名是什么
  • 深圳市官网网站建设报价cnzz 网站域名怎么填
  • 郑州做网站琴东莞发布解封通告
  • 莱西网站建设哪家好荆门城乡建设局网站