sublime-text3 3114版本 goto anything 无法正常使用

发布于 2022-09-02 20:26:23 字数 4525 浏览 19 评论 0

原来的goto anything功能,就是那个ctrl+p打开的功能,搜索可以搜索整个项目的文件,而现在只能搜索历史文件,就是这个项目曾经用sublime-text3打开的文件才能搜索出来。。这是新版的bug吗?有人遇到过吗?

刚刚把用户配置删除了这个功能就好了。。

我配置文件哪里有问题了?
Preferences.sublime-settings

{
    "always_prompt_for_file_reload": false,
    "always_show_minimap_viewport": false,
    "animation_enabled": true,
    "atomic_save": true,
    "auto_close_tags": true,
    "auto_complete": true,
    "auto_complete_commit_on_tab": false,
    "auto_complete_delay": 50,
    "auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
    "auto_complete_size_limit": 4194304,
    "auto_complete_triggers":
    [
        {
            "characters": "<",
            "selector": "text.html"
        }
    ],
    "auto_complete_with_fields": false,
    "auto_find_in_selection": false,
    "auto_indent": true,
    "auto_match_enabled": true,
    "binary_file_patterns":
    [
        "*.dds",
        "*.eot",
        "*.gif",
        "*.ico",
        "*.jar",
        "*.jpeg",
        "*.jpg",
        "*.pdf",
        "*.png",
        "*.swf",
        "*.tga",
        "*.ttf",
        "*.zip",
        "/**"
    ],
    "bold_folder_labels": false,
    "caret_extra_bottom": 0,
    "caret_extra_top": 0,
    "caret_extra_width": 0,
    "caret_style": "smooth",
    "close_windows_when_empty": false,
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "copy_with_empty_selection": true,
    "create_window_at_startup": true,
    "default_encoding": "UTF-8",
    "default_line_ending": "system",
    "detect_indentation": true,
    "dictionary": "Packages/Language - English/en_US.dic",
    "drag_text": true,
    "draw_centered": false,
    "draw_indent_guides": true,
    "draw_minimap_border": false,
    "draw_white_space": "all",
    "enable_hexadecimal_encoding": true,
    "enable_tab_scrolling": true,
    "enable_telemetry": "auto",
    "ensure_newline_at_eof_on_save": false,
    "fade_fold_buttons": true,
    "fallback_encoding": "Western (Windows 1252)",
    "file_exclude_patterns":
    [
        "*.pyc",
        "*.pyo",
        "*.exe",
        "*.dll",
        "*.obj",
        "*.o",
        "*.a",
        "*.lib",
        "*.so",
        "*.dylib",
        "*.ncb",
        "*.sdf",
        "*.suo",
        "*.pdb",
        "*.idb",
        ".DS_Store",
        "*.class",
        "*.psd",
        "*.db",
        "*.sublime-workspace"
    ],
    "find_selected_text": true,
    "fold_buttons": true,
    "folder_exclude_patterns":
    [
        ".svn",
        ".git",
        ".hg",
        "CVS"
    ],
    "font_face": "MONACO",
    "font_options":
    [
        "no_bold",
        "no_italic",
        "no_antialias",
        "gray_antialias"
    ],
    "font_size": 19,
    "gpu_window_buffer": "auto",
    "gutter": true,
    "highlight_line": false,
    "highlight_modified_tabs": false,
    "hot_exit": true,
    "ignored_packages":
    [
        "Git",
        "QuickGotoAnything",
        "Vintage"
    ],
    "indent_guide_options":
    [
        "draw_normal"
    ],
    "indent_subsequent_lines": true,
    "indent_to_bracket": false,
    "index_exclude_patterns":
    [
        "*.log"
    ],
    "index_files": true,
    "line_numbers": true,
    "line_padding_bottom": 0,
    "line_padding_top": 0,
    "margin": 4,
    "match_brackets": true,
    "match_brackets_angle": false,
    "match_brackets_braces": true,
    "match_brackets_content": true,
    "match_brackets_square": true,
    "match_selection": true,
    "match_tags": true,
    "move_to_limit_on_up_down": false,
    "open_files_in_new_window": true,
    "overlay_scroll_bars": "system",
    "preview_on_click": true,
    "remember_open_files": false,
    "rulers":
    [
    ],
    "save_on_focus_lost": false,
    "scroll_past_end": true,
    "scroll_speed": 1.0,
    "shift_tab_unindent": false,
    "show_encoding": false,
    "show_full_path": true,
    "show_line_endings": false,
    "show_panel_on_build": true,
    "show_tab_close_buttons": true,
    "smart_indent": true,
    "spell_check": false,
    "tab_completion": true,
    "tab_size": 4,
    "theme": "Default.sublime-theme",
    "translate_tabs_to_spaces": true,
    "tree_animation_enabled": true,
    "trim_automatic_white_space": true,
    "trim_trailing_white_space_on_save": false,
    "use_simple_full_screen": false,
    "use_tab_stops": true,
    "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",
    "word_wrap": true,
    "wrap_width": 0
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

在风中等你 2022-09-09 20:26:23

binary_file_patterns 设置有问题,下面是默认设置

// These files will still show up in the side bar, but won't be included in Goto Anything or Find in Files
"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],

你的配置里 "/**",这样 Goto Anything 就找不到任何文件了

妞丶爷亲个 2022-09-09 20:26:23

你要把你的工作目录加入到当前 project

Project -> Open Folder

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文