Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>实时股票行情New to Visual Studio Code? Get it now.
实时股票行情

实时股票行情

Zuping Li

|
1 install
| (1) | Free
在 VSCode 底部状态栏按配置实时显示股票 / 指数行情
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

实时股票行情

在 VSCode 底部状态栏实时显示股票 / 指数行情,支持自定义代码列表、刷新间隔与涨跌颜色。

状态栏效果:上证指数 4091.89 ↓-0.11% 南山控股 2.22 ↓-2.20% 天风证券 3.34 ↑+1.21%(涨白跌绿)

配置项(设置里搜 stockStatusBar)

配置 说明 默认
stockStatusBar.stocks 代码列表 6 只(上证指数 / 南山控股 / 天风证券 / 万科A / 比亚迪 / 金种子酒)
stockStatusBar.updateInterval 刷新间隔(秒) 5
stockStatusBar.riseColor 上涨颜色 #ffffff
stockStatusBar.fallColor 下跌颜色 #4eaf4e
stockStatusBar.flatColor 平盘 / 无数据颜色 #888888
stockStatusBar.showArrow 显示 ↑/↓ 箭头 true
stockStatusBar.showName 显示名称(否则显示代码) true

代码格式

  • 上证股票 / 指数:sh 前缀,如 sh000001(上证指数)、sh601162(天风证券)
  • 深证股票:sz 前缀,如 sz002314(南山控股)

命令(Ctrl+Shift+P)

  • 实时股票行情:立即刷新
  • 实时股票行情:设置股票代码(输入框里逗号分隔,直接写入用户设置)

数据源

行情数据来自腾讯接口 qt.gtimg.cn。若处于代理网络导致取数失败,状态栏会显示 代码 --,鼠标悬停可见错误信息。

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