Intentions of BashSupport Pro
BashSupport Pro provides intentions to help you change common aspects of shell scripts efficiently.
转换为带引号字符串
Convert a single-quoted string like 'text'
or a plain, unquoted word like text
into an equivalent double-quoted string.
- 上下文
- Single-quoted strings and unquoted text.


转换为原始字符串
Convert a double-quoted string into an equivalent single-quoted string.
- 上下文
- Double-quoted strings, which only contain static values. String with variable references, subshells or other dynamic content are excluded from this intention.


转换为无引号文字
Convert a single-quoted or double-quoted string into a text literal without quotes. Special characters are escaped, when needed.
- 上下文
- Single quoted and double-quoted strings.


转换为传统的 `...` 符号
Convert a subshell command into the equivalent backquote command.
Both ()
and $()
are converted into ``
.
- 上下文
- Subshell commands.


转换为 $(...) 符号
Convert a legacy backquote command substitution `` element into the equivalent subshell element.
- 上下文
- Legacy backquote commands


转义字符串
Adds escaping to a string to turn variable references into literal string values. Please note, that this changes the semantics of the escaped text.
- 上下文
- Double-quoted strings.


删除字符串转义
Removes escaping from a quoted string. Please note, that this intention may change the semantics of your script.
- 上下文
- Double-quoted strings or single-quoted strings like
$'text'
, which support escapes.


转换为变量引用 $Name
Converts a simple parameter expansion ${name}
into the equivalent variable reference $name
.
- 上下文
- Simple parameter expansions without operators.


=转换为变量展开 ${Name}
Converts a simple variable reference into the equivalent parameter expansion.


添加函数关键字
Adds a function keyword to functions declared in Bash files.
- 上下文
- Names of function definitions without the
function
keyword.


移除 Function 关键字
Removes the function keyword of function declarations.
- 上下文
- The
function
keyword of function definitions.


删除引号(可能会改变语义)
Remove the quote of single-quoted or double-quoted strings. Only the quotes are removed, no escaping or other transformations are applied. Please note, that this intention may change the semantics of your script.
- 上下文
- Single-quoted and double-quoted strings.


切换 Bats-Core 测试标记样式
Switch between @test
and #@test
marker styles of bats-core.
- 上下文
- Names of bats-core test functions or the test markers
@test
and#@test
.

