Change the default directory for Brackets

只愿长相守 提交于 2020-01-02 04:43:08

问题


I have tons of files in my home directory (~), and each time I open Brackets, it tries to load and index all the files there. Eventually, after freezing for a minute, it throws the error:

Error Indexing Files: The maximum number of files have been indexed.

I can of course switch directories after this freeze, but how do I set the default directory for Brackets to be another directory (not the home directory), thus avoiding this freeze each time Brackets is initiated?


回答1:


Brackets should be remembering whichever project you had open last. Your state settings file may be corrupt. Try these steps:

  1. Quit Brackets
  2. Navigate to the following folder:
    • Mac: ~/Library/Application Support/Brackets
    • Linux: ~/.config/brackets
  3. Find the state.json file and change the projectPath parameter to a new default path
  4. If state.json cannot be found, make sure this folder has write permissions for your user account

If the above did not work, try opening the state.json to see if it's corrupted (possibly by a buggy extension). If all fails delete the file altogether and restart.



来源:https://stackoverflow.com/questions/29212969/change-the-default-directory-for-brackets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!