Skip to content

Visual Studio Code智能提示

zhenglibao edited this page Jan 31, 2018 · 15 revisions

Visual Studio Code的下载地址:

https://code.visualstudio.com

安装xml提示扩展

"editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
}

然后你就可以方便的使用vscode来编辑布局文件了 😀

编辑时智能提示效果如下: 智能提示效果

如何在xcode中方便使用vscode打开

打开Finder,选择一个xml文件,右击选择“显示简介”,在弹出的面板中的“打开方式”中选择Visual Studio Code,然后点击“全部更改”,关闭窗口。 在XCode中右击文件,选择“Open With External Editor”即可打开,同时也可以在Preferences中绑定快捷键。

智能提示约定

去除控件前缀将自动替换成完整的组件,如

label ===>

textview ===>

其他提示的内容将直接等效于所提示的内容,如

UILabel ====> UILabel

white ====> white

Clone this wiki locally