• 请不要在回答技术问题时复制粘贴 AI 生成的内容
yuan321
V2EX  ›  程序员

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

  •  1
     
  •   yuan321 · Nov 26, 2023 · 1219 views
    This topic created in 898 days ago, the information mentioned may be changed or developed.

    比如使用 kysely 的查询,

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

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

    qloog
        1
    qloog  
       Nov 26, 2023
    因为 vscode 和 typescript 都是微软家的,所以 vscode 天然支持 ts
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5825 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 98ms · UTC 06:36 · PVG 14:36 · LAX 23:36 · JFK 02:36
    ♥ Do have faith in what you're doing.