- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我只想知道 workbench.action.findInFiles
和 workbench.view.search
命令之间的区别。两者都用于访问跨文件搜索面板。
我猜 workbench.action.findInFiles
是 workbench.view.search
的更新版本,因为我找到了 'findInFiles' accepts parameters而 view.search
没有。
最佳答案
我认为您捕获了唯一真正的区别。它们都有相同的默认键绑定(bind),但 view
版本确实有一个 context
参数:
!searchViewletVisible
所以它实际上只是在不可见时显示搜索面板。但是 findInFiles
版本也会使搜索面板可见。唯一真正的区别是接受争论的能力——我认为很少有人知道这一点。
正如您所指出的,findInFiles
版本可以带参数——我以前不知道!!所以值得展示如何。像这样:
{
"key": "ctrl+shift+f", // whatever keybinding you wish
"command": "workbench.action.findInFiles",
"args": {
"query": "${selectedText}", // variables don't work
"replace": "that's $1 swell",
"triggerSearch": true, // seems to be the default
"filesToInclude": "${relativeFileDirname}", // no variables
"preserveCase": true,
"useExcludeSettingsAndIgnoreFiles": false,
"isRegex": true,
"isCaseSensitive": true,
"matchWholeWord": true,
"filesToExclude": "./*.css"
}
},
workbench.view.search
可用参数的完整列表:
"query": "",
"regexp": "",
"wholeWord": "",
"caseSensitive": "",
"includes": "",
"excludes": "",
"showIncludesExcludes": "",
"useIgnores": "",
"contextLines": 0,
"triggerSearch": "",
"focusResults":
上面的 args 列表正在转换为下面的列表(参见 https://github.com/microsoft/vscode/commit/2fdc8c336c601e385fadfaa1802cdc67fea96241 )以与 findInFiles
命令保持一致。我假设旧的 args 会工作一段时间,但新的 args 在 Insiders' Build v1.51 中,所以应该很快就会稳定。
"query": ""
"isRegexp": true,
"isCaseSensitive": false,
"matchWholeWord": true,
"filesToInclude": "",
"filesToExclude": "",
"showIncludesExcludes": false,
"useExcludeSettingsAndIgnoreFiles": true,
"contextLines": 2,
"triggerSearch": true,
"focusResults": true
如果您有一个常用的搜索/替换,这可能很有值(value)并且可以分配给唯一的键绑定(bind)。
workbench.view.search
不能接受预设参数,但是 search.action.openNewEditor
可以!参见 https://stackoverflow.com/a/62207896/836330了解更多。
关于visual-studio-code - 搜索(在文件中查找)键绑定(bind)可以带参数,workbench.view.search 不能 - 其他区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62251045/
我想不通这个。我无法使用 MySQL Workbench 连接到服务器,我尝试了任何一种连接方法。我得到的错误信息是 Failed to Connect to MySQL at AT 127.0.0.
我尝试使用 mysql workbench for windows,但在上下文菜单duplicate table 中找不到命令。 谁能说出这个命令在哪里? 最佳答案 在 SQL IDE 中没有复制表的
任何人都可以发布解释性行如何重命名 Mysql Workbench 6.2 中的选项卡吗? 根据手册,该功能在那里 => http://dev.mysql.com/doc/workbench/en/w
我的 MySQL Workbench 有一个严重问题:我实际上无法编辑“列”选项卡,因为它是灰色的。 我试图为新创建的图表和现有图表编辑表格的列,但没有运气。 WB 的最新版本是否存在错误,或者我是否
我有一个在 MySQL Workbench 中设计的架构。我为表格添加了描述,并为列和 View 添加了注释。 我创建了一个图表,我想查看图表中的注释和描述。有没有办法做到这一点?我注意到工具提示显示
定义关系时,如何使Workbench显示表之间的连接线? 最佳答案 在EER模型中编辑表时,将有一个名为Foreign Keys的选项卡,可用于定义好...外键。这些外键将在图中可见。 您可以通过双击
有没有办法在 MySQL Workbench 的结果网格中添加一些行号? 例如。 (红色数字): 我不想更改 SQL 查询,我知道我可以使用 tricks喜欢 SELECT @n := @n + 1
我在我的图表的图表属性中使用了 2 页。 但是,我想在一张 dinA4 纸上打印整个图表。这可能吗? 最佳答案 文件 > 页面设置...设置最适合您的图表的页面。 文件 > 打印到文件... 不仅仅是
尝试打开 mwb 模型文件时出现以下错误 error unserializing grt data string to long 我的文件为 217 KB,我使用的是 6.3.4.0 版本 828(适
我正在使用 CentOS 6.4,并且做到了 sudo yum install mysql-workbench-community.x86_64 安装了 MySQL Workbench 6.1 版 当
我最近将开发机器升级为使用MySQL Workbench 6.1。我试图使用工作台和“选择行...”在表中输入一些数据,当我单击“应用”按钮以插入数据时,工作台报告发生了错误(请参见下图),但是没有告
我知道如何从工作台导出文件并上传到 Excel 进行分析。最近我有一台带工作台的 Windows 计算机,我可以从查询中选择所有结果,然后粘贴到电子表格中。我最近转移到 Mac 并下载了 MySQL
如何使用 MySQL Workbench 工具创建多态关系?我希望能够处理类似 Rails 给我的东西: class Example < ActiveRecord::Base belongs_to
在 MySQL Workbench 中,双击表对象会将表名粘贴到当前关注的查询文件中。 可以改变吗?我想在双击时看到表格内容。 或者至少,禁用当前行为。 那可能吗?如何? 谢谢。 最佳答案 您不能,但
在 mySQL Workbench 中,当在表上使用“复制到剪贴板”时,创建的 sql 语句包含将列名、表名等换行的反引号 (`)。有办法避免吗? 最佳答案 一旦您选择了所需的行,您需要右键单击并选择
目前,每次我想通过 MySQL Workbench 转储数据库时,它都会默认显示此标准路径: /home/me/dumps/Dump20110810 # The date alters. 因为我已经将
如何更改 MySQL Workbench 界面字体大小? 请注意:界面,而不是编辑器字体。 Windows 8.1 上的工作台 6.3 最佳答案 那是不可能的。有些地方使用系统字体大小(尤其是标准控件
默认情况下,自动补全为小写。有什么办法让它变成大写吗? 最佳答案 我提交了bug report : Description: The autocompletion uses lowercase ins
我在 MySQL Workbench 中创建了一个 DB 模型和 EER 图。我正在使用工作台脚本功能编写一个脚本来生成代码,以便在数据库导出并在 MySQL 服务器上创建后使用该数据库。 当我遍历表
我刚得到一个新项目,它需要与一个数据库一起工作,没人知道它的结构。它在Mysql DB上,所以我尝试使用mySQL Workbench通过使用许多其他人推荐的逆向工程功能从这个DB导出EER图 我确实
我是一名优秀的程序员,十分优秀!