bor*_*r4g 25 sublimetext sublimetext2 sublimetext3
我在整个软件包控件中安装了jQuery Snippet的问题.安装后我没有弹出jQuery代码提示和intalisance.看看这个视频:http:
//code.tutsplus.com/courses/perfect-workflow-in-sublime-text-2/lessons/adding-snippets-through-package-control
键入后0:50 .他有弹出的代码提示 - 我没有这个.我必须输入.然后按Tab以显示带有片段的弹出窗口...
是的,我在JavaScript文件中,我有默认设置.
之后.他还得到了所有jQuery函数,如add
或addClass
.即使我按Ctrl+,我也没有这个Space.
Ric*_*dan 64
如果你点击CTRL-SPACE,你将获得你刚输入的可用完成的下拉列表.
http://www.sublimetext.com/docs/2/tab_completion.html
如果您希望在键入时显示自动完成下拉列表,请将此行添加到User Preferences.sublime-settings文件中:
{
"auto_complete_selector": "source, text"
}
Run Code Online (Sandbox Code Playgroud)
那应该做你想要的:-)
Fla*_*che 14
请考虑将用户设置更改为以下内容:
{
// By default, auto complete will commit the current completion on enter.
// This setting can be used to make it complete on tab instead.
// Completing on tab is generally a superior option, as it removes
// ambiguity between committing the completion and inserting a newline.
"auto_complete_commit_on_tab": true,
// Controls if auto complete is shown when snippet fields are active.
// Only relevant if auto_complete_commit_on_tab is true.
"auto_complete_with_fields": true,
// As Richard Jordan suggested, this item
// controls what scopes auto complete will be triggered in
"auto_complete_selector": "source, text"
}
Run Code Online (Sandbox Code Playgroud)
打开你的用户设置按Cmd+ ,Mac或Ctrl+ ,在Windows
如果你想完全掌握Sublime Text 2,我推荐这门课程:Sublime Text中的完美工作流程.在我第一次发布这个答案时,它曾经是免费的.无论如何我仍然推荐它.
归档时间: |
|
查看次数: |
27792 次 |
最近记录: |