dbeaver / dbeaver/dbeaver

Templates keyboard shortcut doesn't work anymore in code blocks (between $$)

Open
#35,669 1 comment 0 reactions 1 assignee Claimed by @E1izabeth View on GitHub
xf:sql editor
Dominant language
Java
Stars
51.8k
Forks
4.4k
Avg merge
3d 8h
Merged PRs (30d)
188

Description

### Description

When writing a function in Postgres, I'm often using keyboard shortcuts (ctrl+alt+space) to trigger templates, but it doesn't work anymore.

### DBeaver Version

Community Edition 24.2.0

### Operating System

Windoze 11

### Database and driver

Postgres 14.10

### Steps to reproduce

create a template, eg `name = tst, pattern = this is a test`
in the SQL editor, type
```
$$
$$
```
position the cursor after the first '$$' and insert a new line with tst:
```
$$
tst
$$
```
keep the cursor just after the 'tst' and press shortcut `ctrl+alt+space` and ... _nothing happens_
if you remove the last $$, it works

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.