如何将Sublime Text设置为默认首选项?

时间:2015-05-16 22:25:20

标签: sublimetext3

我想删除对我的偏好所做的所有更改,并将我的所有首选项设置为默认值。做了一些我不记得的变化,并希望从默认设置开始。如果有一个简单的解决方案,我不想卸载我的sublime并重新安装。

1 个答案:

答案 0 :(得分:0)

您需要做的只是打开 public class MainActivity extends Activity { List<String> responseList; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); AutoCompleteTextView auto1 = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView1); new HttpGetTask().execute(); } private class HttpGetTask extends AsyncTask<Void, Void, String> { String URL = "http://192.168.1.70/example/suggestion.php?name="; AndroidHttpClient mClient = AndroidHttpClient.newInstance(""); @Override protected String doInBackground(Void... params) { HttpGet request = new HttpGet(URL); ResponseHandler<String> responseHandler = new BasicResponseHandler(); try { return mClient.execute(request, responseHandler); } catch (ClientProtocolException exception) { exception.printStackTrace(); } catch (IOException exception) { exception.printStackTrace(); } return null; } @Override protected void onPostExecute(String result) { try { JSONArray json = new JSONArray(result); Log.v("ResponseCity", result); List<String> responseList = new ArrayList<String>(); for (int i = 0; i < json.length(); i++) { final JSONObject e = json.getJSONObject(i); String name = e.getString("name"); responseList.add(name); } } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } if (null != mClient) mClient.close(); ArrayAdapter<String> adapter = new ArrayAdapter<String>(MainActivity.this, android.R.layout.simple_dropdown_item_1line, responseList); AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView1); textView.setAdapter(adapter); } } } ,完全删除其内容,保存空文件,然后重新启动Sublime。这会将您的所有设置恢复为默认值。

如果你想安装插件,你可以通过完全退出程序将Sublime恢复到完全新鲜状态( Sublime Text 2 -> Preferences -> Settings-User ),然后删除Sublime Text 2 -> Quit。这将在您第一次安装时重新创建程序的状态。