zoukankan      html  css  js  c++  java
  • Sublime Text怎么在切分两行视口内显示同一个文件

    原文链接:http://devlog.en.alt-area.org/?p=1098

    How to split one file into two views in Sublime Text2

    You will often be coding while comparing the two places of the same file. Of course, Sublime Text2 can display vertical or horizontal split view of one file.
    sublime_split_en_compressed
    However, it is a little hard to understand how to do it. So, I will explain it. (In the following description, the key assignment is assumed to Windows.)

    1. Split window by View > Layout (alt + shift + num)
      Each view divided here is recognized as each “group”.
    2. Make file clone by File > “New View into File”
      Another tab of the file is made in the same group.
    3. Move to another tab by dragging & dropping the tab made in 2, or View > “Move File To Group” (Ctrl + num).

    At least, you can display the same file into two groups.

    To Make Shortcut for “New View into File”

    By default, any shortcut is not assigned in the menu “New View into File”. If you want to assign it to “alt + shift + c”, open the definition file by Preferences > “Key Bindings – User” and add the following definition between [ ].

    If you already have other definitions, add “,” after the last definition and the definition above. I think it will be as follows.

    Use “SimpleClone”

    Even if you define the shortcut in this way, it is cumbersome to take 3 steps: Split View > Clone File > Move Clone to Another Group. At such times, you may use a plug-in called “SimpleClone”.

    If you already installed “Package Control”, you can install by Tools > “Command Palette…” > “Package Control: Install Package” > SimpleClone.

    There are menu in View > SimpleClone and shortcut is as follows.
    Ctrl + Shift + right: Split to right
    Ctrl + Shift + down: Split down
    Ctrl + Alt + Shift + n: Make clone in new window

  • 相关阅读:
    Codeforces 615D Multipliers (数论)
    第十二届北航程序设计竞赛决赛网络同步赛 J题 两点之间
    ZSTU 4248 KI的目标(dfs)
    POJ2546 Circular Area(计算几何)
    HDU-ACM“菜鸟先飞”冬训系列赛——第7场 H
    Codeforces 761C Dasha and Password(枚举+贪心)
    Codeforces 761D Dasha and Very Difficult Problem(贪心)
    Datastructure
    GDB调试
    GCC操作
  • 原文地址:https://www.cnblogs.com/gavinyyb/p/6232158.html
Copyright © 2011-2022 走看看