在Sublime Text 3中,“后退/前进”的默认键绑定分别为 "alt+minus" / "alt+shift+minus"
。尝试将其重新定义为其他热键(例如"alt+left" / "alt+right"
)对我来说不起作用。
我正在尝试Sublime Navigation History插件中所述的解决方案:
ST3
ST3不再需要此插件,因为内部版本3019的导航历史记录已通过新的Jump Back和 跳转命令。它们分别称为“ jump_back”和“ jump_forward” 然后可以将它们添加到您的键绑定中(首选项->键绑定 -用户),其中包含以下代码段:
{“ keys”:[“ ctrl + alt + left”],“ command”:“ jump_back”},{“ keys”: [“ ctrl + alt + right”],“ command”:“ jump_forward”}
我尝试了各种键绑定组合,但是它们似乎都不会触发跳回/前进命令。而且我在默认首选项文件中找不到用于后退/前进命令的默认键绑定。
我想念什么?
P.S .: Sublime Text版本3.1.1,内部版本3176;操作系统Win7x64
对不起,我的错。尚未注意到命令名称中的错字。结案了。
答案 0 :(得分:0)
首先,这是jump_back和jump_forward的默认绑定:
package com.example.david.magic;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class Main2Activity extends AppCompatActivity {
String fud;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);
EditText hi = findViewById(R.id.textView2);
Bundle extras = getIntent().getExtras();
if (extras != null) {
int sum = getIntent().getIntExtra("RESULT_SUM", 0);
hi.setText(String.valueOf(sum));
}
EditText bye = findViewById(R.id.textView2);
Bundle extra = getIntent().getExtras();
if (extras != null) {
int sumd = getIntent().getIntExtra("RESULT_SUMd", 0);
bye.setText(String.valueOf(sumd));
}
}
public void yyes (View view){
EditText editTextOne = (EditText) findViewById(R.id.textView2);
EditText editTextTwo = (EditText) findViewById(R.id.textView1);
int firstNumber = Integer.parseInt(editTextOne.getText().toString());
int secondNumber = Integer.parseInt(editTextTwo.getText().toString());
int sum = firstNumber + secondNumber;
// Now send the result sum to the Activity B through intent.
Intent intent = new Intent(this, Main3Activity.class);
intent.putExtra("RESULT_SUM1", sum);
startActivity(intent);
}
public void nno (View view){
EditText editTextOne1 = (EditText) findViewById(R.id.saysno);
EditText editTextTwo1 = (EditText) findViewById(R.id.textView2);
int firstNumber1 = Integer.parseInt(editTextOne1.getText().toString());
int secondNumber1 = Integer.parseInt(editTextTwo1.getText().toString());
int sum2 = secondNumber1;
// Now send the result sum to the Activity B through intent.
Intent nno = new Intent(this, Main3Activity.class);
nno.putExtra("RESULT_SUM2", sum2);
startActivity(nno);
}
}
activity_main2
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Main2Activity">
<EditText
android:id="@+id/textView2"
android:layout_width="147dp"
android:layout_height="51dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
android:text=""
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.217"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.961"
android:text="Yes"
android:onClick="yyes"/>
<Button
android:id="@+id/Button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.739"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.961"
android:text="No"
android:onClick="nno"/>
<EditText
android:id="@+id/textView1"
android:layout_width="174dp"
android:layout_height="49dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:text="2"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.381" />
<EditText
android:id="@+id/saysno"
android:layout_width="170dp"
android:layout_height="50dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="196dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="196dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:text="0"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:layout_width="366dp"
android:layout_height="282dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:background="@drawable/two"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.289" />
</android.support.constraint.ConstraintLayout>
然后要设置自己的绑定属性,您应该使用以下绑定来修改右侧面板(默认为空):
`{ "keys": ["alt+keypad_minus"], "command": "jump_back" },
{ "keys": ["alt+shift+keypad_minus"], "command": "jump_forward" },
{ "keys": ["alt+-"], "command": "jump_back" },
{ "keys": ["alt+shift+-"], "command": "jump_forward" },`