惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
G
Google Developers Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
AWS News Blog
AWS News Blog
F
Full Disclosure
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
J
Java Code Geeks
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
C
Cisco Blogs
博客园 - 司徒正美
Project Zero
Project Zero
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
Scott Helme
Scott Helme
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
S
Securelist
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
T
Threatpost
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
S
Security Archives - TechRepublic
博客园 - Franky
N
News | PayPal Newsroom
Simon Willison's Weblog
Simon Willison's Weblog
S
SegmentFault 最新的问题
W
WeLiveSecurity
A
Arctic Wolf
B
Blog

博客园 - 邹华栋

以太坊彩票合约案例 web3调用call()方法获取不到返回值 - 邹华栋 Error: insufficient funds for gas * price + value 以太坊ERC20代币合约案例 - 邹华栋 - 博客园 助记词生成原理 通过超链接启动App cmd生成文件目录tree npm安装第三方库找不到“cl.exe”问题 node-rsa非对称加密 浏览器内核、渲染引擎、JS引擎简介 前端必读:浏览器内部工作原理 json-lib.jar开发包及依赖包的下载地址(转) 关于成长-浅谈社会动力之源 关于习惯 教学相长 Linux+Mono+Asp.net入门:05CentOs安装Mono(上) 【Linux+Mono+Asp.net公开课】视频下载 Linux+Mono+Asp.net入门:04VM安装CentOS - 邹华栋 Linux+Mono+Asp.net入门:03.在VM中创建虚拟机
idea 没有智能提示
邹华栋 · 2018-12-17 · via 博客园 - 邹华栋

开发工具要对源码产生提示,现在比较流行的是使用 *.d.ts 文件 来编写提示消息
以下的解决办法不是根本之道,估计是开发工具有什么地方可以设置 自动下载 *.d.ts 文件,知道的读者还请留言赐教~

  • 使用 web3 来部署以太坊合约时,如果发现idea没有提示,可能是因为下载 web3 时没有把 index.d.ts 文件一起下载下来
    解决方案:通过npm指定安装 ts 文件
npm install --save @types/web3
  • 安装完毕后,node_modules中会多一个@types文件夹
    node_modules多一个@types文件夹

  • 里面就会有web3的index.d.ts文件了
    image.png

  • 下载好这个文件后,idea就会自动加载这个文件,进而生成智能提示
    智能提示

  • 鼠标悬停也有说明了
    鼠标悬停说明

  • ctrl+左键可以直接进入 ts 文件查看详细说明,其中的 内容页可以 继续点击查看(如箭头所指处)
    index.d.ts文件