GithubHelp home page GithubHelp logo

pluveto / image-hover-preview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ltaoo/image-hover-preview

0.0 0.0 0.0 293 KB

preview image when hover the link.

JavaScript 8.59% Less 3.23% TypeScript 82.12% HTML 2.76% Vue 3.30%

image-hover-preview's Introduction

image-hover-preview

Vscode 图片悬停预览插件。

  1. 支持悬停在地址上预览图片
  2. 支持展示图片尺寸与大小

!!不支持非https图片

Install

vscode 中搜索 Image Preview,标题为 Image Hover Preview 的那个

Usage

安装插件后,在图片地址上悬停时即可预览该图片,支持网络图片。

Contribute

clone 项目后安装依赖,启动开发即可

yarn start

进入 debug 面板,点击 Run Extension 即可开始调试。

Todo

1、支持配置忽略指定路径图片

{
  "imageHoverPreview.ignore": {
    "type": "array",
    "items": {
      "type": "string"
    },
    "default": [],
    "description": "The image path need ignore."
  }
}

2、绝对路径图片的识别

现在因为会误识别,所以对绝对路径的识别是去掉的,如 <div>hello</div>,这里的 /div> 就容易被识别为图片。

3、支持自适应预览时的大小

有些图片比较大,单纯限制宽度会导致图片还是看不清,可以根据图片真实宽高自适应展示的图片宽高。

4、支持预览 http 协议图片

由于 vscode 自身的限制,http 协议图片是无法预览的。

image-hover-preview's People

Contributors

ltaoo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.