Giter Site home page Giter Site logo

vscode-persona5's Introduction

vscode-persona5 README

欢迎来到Persona插件~,在 VS Code 中连续写代码一小时(时间可配置),将会收到p5彩蛋~

使用

vscode 闹钟插件 p5党自取/:rose[Wow]

  • 连续工作1小时将会收到彩蛋提醒你“起身走动”
  • 如果在弹窗中拒绝,则会在1小时后收到怪盗预告信
  • 已击杀音动效支持 后续优化list :
  • UI优化 欢迎issue 我

除了每过一小时会自动弹出提醒页面,也可以按 shift+commend+p, 然后输入 persona来打开提醒页面

usage usage1 usage2

配置

  • persona.minutes: 展示提醒页面的时间间隔(分钟)。(默认值为60)
  • persona.tip: 提示文字。 (默认值为小哥哥,小哥哥,代码写久了,该休息啦~)
  • persona.type: default (默认图);url (图片地址)。(默认值为default)
  • persona.play: 播放类型:img:图片;mp4:mp4。(默认值为mp4)
  • persona.customImages: 配置图片数组(需要搭配persona.type为url,切播放类型为img) (默认值为空数组)
如下例子,使用自定义图片:
"persona.type": "url",
"persona.customImages": [
    "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTd1zxaRny6rLB-93Mmk6Jrq69-FiU_Yx2TOB4NP2DeswfnECfnJvKaOs9JKyfivurALZw&usqp=CAU"
]

如何使用本地图片作为展示图片

  • vscode不允许读取外部文件路径,所以只能自己去替换插件内的图片。替换步骤如下:

    1、找到vscode插件安装的地方 (如mac 在~/.vscode/extensions/taylor12138.vscode-persona5-{version})

    2、替换images/persona

vscode-persona5's People

Stargazers

Ocean Peace avatar

Watchers

Ocean Peace 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.