V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yuan321
V2EX  ›  程序员

同样的 typescript 项目,在 vscode 中有提示,在 webstorm 中却没有

  •  1
     
  •   yuan321 · 167 天前 · 673 次点击
    这是一个创建于 167 天前的主题,其中的信息可能已经有所发展或是发生改变。

    比如使用 kysely 的查询,

    const persons = await db
      .selectFrom('person')
      .select('id')
      .where('first_name', '=', 'Arnold')
      .execute()
    

    输入了 select 后的两个引号后,再按下空格 vscode 就可以显示出所有在 d.ts 中定义的字段名,而 webstorm 却不会,webstorm 只有输入某个字母后才会有对应的提示,这是咋回事呢?

    qloog
        1
    qloog  
       167 天前
    因为 vscode 和 typescript 都是微软家的,所以 vscode 天然支持 ts
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1309 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:00 · PVG 02:00 · LAX 11:00 · JFK 14:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.