简体   繁体   English

Visual Studio代码的配置

[英]Configuration of Visual Studio Code

So recently I started switching from sublime text 3 to Visual Studio Code, and there are a few things which bother me, so I was wondering if its possible to change/configure this: 所以最近我开始从sublime text 3切换到Visual Studio Code,有一些事情困扰我,所以我想知道是否有可能改变/配置这个:

  1. When selecting " Open with Visual Studio Code " from the Windows Explorer on a file which is already opened, visual studio will still reopen the file in a new window. 当从Windows资源管理器中选择“ 使用Visual Studio代码打开 ”已打开的文件时,visual studio仍将在新窗口中重新打开该文件。

  2. For my C++ code, some inline method definitions are in files ending with .I (I am unable to change this). 对于我的C ++代码,一些内联方法定义位于以.I结尾的文件中(我无法更改)。 I already configured VS Code to detect those as C++ files, however Alt + O does not switch between the .I and .h / .cpp file. 我已经将VS Code配置为将其检测为C ++文件,但是Alt + O不会在.I.h / .cpp文件之间切换。 (It does fine between .h / .cpp ) (它在.h / .cpp之间很好)

  3. Is there something like a hex view for binary files? 是否有像二进制文件的十六进制视图? Right now I am unable to edit them with VS Code. 现在我无法使用VS Code编辑它们。

  4. I added some files to my exclude list in search.exclude and files.watcherExclude . 我将一些文件添加到 search.excludefiles.watcherExclude排除列表中。 Those are properly ignored in the quick-change bar, but they are still shown in the file-hierarchy on the left. 这些在快速更改栏中被正确忽略,但它们仍然显示在左侧的文件层次结构中。 Is it possible to hide them there as well? 是否有可能将它们隐藏在那里? Found it: its files.exclude 找到它:它的files.exclude

  5. When creating and saving a new file, the save dialog always starts at the project directory. 创建和保存新文件时,保存对话框始终从项目目录开始。 Is it possible to change this, so that it defaults to the path of the last-opened file, just like in sublime text? 是否可以更改它,以便它默认为最后打开的文件的路径,就像在崇高文本中一样?

  6. Is there an option/extension to have a code-minimap next to the scrollbar, like in sublime text? 是否有选项/扩展名在滚动条旁边有一个代码迷你地图,就像在崇高文本中一样?

Regarding 6.) 关于6.)

put something like this in your settings.json: 把这样的东西放在你的settings.json中:

"editor.minimap.enabled": true,
"editor.minimap.maxColumn": 200,
"editor.minimap.renderCharacters": false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM