Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Clock And BatteryNew to Visual Studio Code? Get it now.
Clock And Battery

Clock And Battery

Liangru Liu

|
1,019 installs
| (2) | Free
Add clock and battery to the statusbar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Clock And Battery

VS Market Version VS Market Last Updated VS Market Installs (Static) Extension's Keywords

展开 中文版介绍

这个插件可以在状态栏添加日期时间指示器和电池电量指示器。
它和现有的同类插件相比,界面更精致,功能更丰富。

截图

  • 略

前言

  • 插件市场中已有好几个同类插件,我发现它们各有长处,所以我写了这个插件,将长处集于一体。
  • 插件的功能分为两部分:日期时间指示器和电池电量指示器。将来可能会增加性能相关的指示器,比如处理器、内存、网络等。

功能

  1. 日期时间指示器
    • 文字前面有随昼夜切换的小图标;点击状态栏项可以向当前编辑器插入日期时间。
    • 以下内容均可自定义:是否启用、项在状态栏的位置、小图标及其切换时机、显示的日期时间的格式、插入的日期时间的格式、项的刷新周期。
  2. 电池电量指示器
    • 文字前面有随电池状态切换的小图标。
    • 以下内容均可自定义:是否启用、项在状态栏的位置、小图标及其切换时机、项的刷新周期。

安装与使用

  1. 点击 VSCode 左侧扩展按钮,在搜索框搜索,点击 [安装]。
  2. 可以去 [扩展设置] 看看,有许多内容可以自定义。

说明

  1. 插件代码所在位置为(Windows 上的默认路径):
    C:/Users/<NAME>/.vscode/extensions/liangruliu.clock-and-battery-<VER>
  2. 开发这个插件对我来说有点难度,因此这个插件可能存在漏洞。如果你真的遇到了,烦请通过邮箱 LiangruLiu@outlook.com 向我反馈。

开启个性化的 VSCode!





英文版介绍

This plugin can add date time indicator and battery level indicator to the status bar.
Compared with the existing similar plugins, it has a more refined interface and richer functions.

Screenshot

Screenshot

Preface

  • There are several similar plugins in the plugin market, and I found that each has its own strengths, so I wrote this plugin to combine the strengths.
  • The functionality of the plugin is divided into two parts: date time indicator and battery level indicator. Performance related indicators such as processor, memory, network, etc. may be added in the future.

Function

  1. Date time indicator
    • The text is preceded by a small icon that toggles with day and night; click the status bar item to insert date and time into the current editor.
    • The following contents can be customized: whether to enable or not, the position of the item in the status bar, the small icon and its switching timing, the format of the displayed date and time, the format of the inserted date and time, and the refresh interval of the item.
  2. Battery level indicator
    • The text is preceded by a small icon that toggles with the battery status.
    • The following contents can be customized: whether to enable or not, the position of the item in the status bar, the small icon and its switching timing, and the refresh interval of the item.

Installation & Usage

  1. Click the extension button on the left side of VSCode, search in the search box, and click [install].
  2. You can go to [Extension Settings] to have a look, since there are many contents that can be customized.

Description

  1. The location of the plugin code is (Default path on Windows):
    C:/Users/<NAME>/.vscode/extensions/liangruliu.clock-and-battery-<VER>
  2. It's a bit difficult for me to develop this plugin, so this plugin may have bugs. If you do encounter it, please send me feedback via email LiangruLiu@outlook.com.

Enjoy!



  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft