VS代码自动完成基于文件中的单词

时间:2015-07-08 04:58:29

标签: intellisense visual-studio-code javascript-intellisense

我刚开始使用VS Code,我现在对它非常满意!

我来自Notepad ++并且我没有找到与我正在做的事情相同“级别”的任何IDE。直到现在!我非常喜欢VS Code正在做的事情以及所有现代集成技术如何帮助我。

但是我想念NPP做的一件事就是文件中单词的自动完成基础。那么我可以在VS Code中做同样的事情吗?

感谢。

3 个答案:

答案 0 :(得分:5)

g <- ggplot (df, aes(x=x, y=y, shape = type)) +
  geom_point() +
  scale_shape_manual(values=c(21,15,25,18)) + #makes open circle/triangle
  facet_wrap(~site, ncol=2)+
  geom_errorbar(aes(ymin=y_lower.error, ymax=y_upper.error), colour="red")

g

答案 1 :(得分:0)

将此添加到您的settings.json,然后重新启动vs代码:

// Controls how JavaScript IntelliSense works.

// Always include all words from the current document.
"javascript.suggest.alwaysAllWords": true,

// Complete functions with their parameter signature.
"javascript.suggest.useCodeSnippetsOnMethodSuggest": true

答案 2 :(得分:-1)

对于自动完成括号,请使用以下设置:

// Complete functions with their parameter signature.
"javascript.suggest.completeFunctionCalls": true
相关问题