iformatter.java

来自「Python Development Environment (Python I」· Java 代码 · 共 26 行

JAVA
26
字号
/*
 * Created on Feb 17, 2006
 */
package org.python.pydev.parser.prettyprinter;

import org.eclipse.jface.text.IDocument;
import org.python.pydev.core.IPyEdit;
import org.python.pydev.core.docutils.PySelection;

/**
 * This interface is provided for clients that want to implement code-formatting
 */
public interface IFormatter {

    /**
     * Formats the whole doc
     */
    void formatAll(IDocument doc, IPyEdit edit);

    /**
     * Formats the selection.
     */
    void formatSelection(IDocument doc, int startLine, int endLineIndex, IPyEdit edit, PySelection ps);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?