Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 如何在单个Visual Studio代码会话中并排打开相同的文件_Visual Studio Code - Fatal编程技术网

Visual studio code 如何在单个Visual Studio代码会话中并排打开相同的文件

Visual studio code 如何在单个Visual Studio代码会话中并排打开相同的文件,visual-studio-code,Visual Studio Code,假设我正在读取文件xyz.py,当函数func_x在x行调用class_y在y行时,我希望同时看到func_x和class_y,这样我就不必一直上下滚动来读取func_x和class_y。如何并排打开文件xyz.py,以便同时读取func_x和class_y 编辑:这不是,因为它没有解释如何将同一个窗口并排显示。在屏幕的右上角应该有一个拆分编辑器按钮,看起来像这样: 这应该能奏效 windows上的默认键盘快捷键是命令选项板中的Ctrl+\ Ctrl或⌘+Shift+P 输入splite-Ent

假设我正在读取文件xyz.py,当函数func_x在x行调用class_y在y行时,我希望同时看到func_x和class_y,这样我就不必一直上下滚动来读取func_x和class_y。如何并排打开文件xyz.py,以便同时读取func_x和class_y


编辑:这不是,因为它没有解释如何将同一个窗口并排显示。

在屏幕的右上角应该有一个拆分编辑器按钮,看起来像这样:

这应该能奏效

windows上的默认键盘快捷键是命令选项板中的Ctrl+\

Ctrl或⌘+Shift+P

输入splite-Enter

选择视图:拆分编辑器

在侧边栏中 Alt+左键单击该文件

编者
单击右上角的“拆分编辑器”按钮。

此文件的可能副本不是副本。这个问题是问如何分割屏幕,而另一个问题是如何从水平分割切换到垂直分割。发现atom sublime可以在多个选项卡中打开同一个文件,如何在vs代码中执行此操作?@datdinhqoc看起来还没有实现。以下是关于github问题的讨论: