用vscode开发react-native,为什么智能提示时有时无?

图1的flexDirection,justifyContent都是要手打的

第1个回答  2018-03-29



目前官方的c/c++插件也可以开启语义补全了,需要设置

"C_Cpp.intelliSenseEngine": "Default",

该项默认的是基于TAG的补全

===============================================

官方的c/c++插件已经有了基于tag的补全,如果需要更智能的语义补全,需要使用基于clang的插件,一个是youcompleteme for vscode,一个是c/c++ clang command adapter。youcompleteme在vim上无敌,但vscode上还是后面一个表现好点

<img src="https://pic4.zhimg.com/50/v2-5530573a47532eeed481cf8e483324fb_hd.jpg" data-rawwidth="1920" data-rawheight="1080" class="origin_image zh-lightbox-thumb" width="1920" data-original="https://pic4.zhimg.com/v2-5530573a47532eeed481cf8e483324fb_r.jpg">

相似回答