Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>My Time ExtensionNew to Visual Studio Code? Get it now.
My Time Extension

My Time Extension

YangXiaoChuang

|
1 install
| (0) | Free
显示和插入当前时间的插件
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

My Time Extension

一个简单的VSCode插件demo,用于显示和插入当前时间。

功能

  1. 在状态栏显示当前时间(每秒更新)
  2. 通过命令插入当前时间到编辑器
  3. 通过右键菜单插入时间
  4. 可以切换时间显示格式

使用方法

状态栏

  • 状态栏右侧会显示当前时间
  • 点击时间可以插入到当前光标位置

命令面板

  1. 按 F1 或 Ctrl+Shift+P 打开命令面板
  2. 输入以下命令:
    • 插入当前时间:在编辑器中插入当前时间
    • 切换时间显示:切换状态栏显示格式

右键菜单

在编辑器中右键,选择"插入当前时间"

开发说明

这是一个用于学习VSCode插件开发的demo,包含了:

  • 插件基本结构
  • 状态栏显示
  • 命令注册
  • 编辑器操作
  • 配置监听

安装依赖

npm install
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft