Print Thread
Autoreplace & Templates stuff
#57809 04/11/18 01:15 PM
Joined: Apr 2018
Posts: 1
A
Member
OP Offline
Member
A
Joined: Apr 2018
Posts: 1
Hello everyone. I have some questions about autoreplace and templates in PLSQL Developer.

1. Is it possible to assign special key to invoke autoreplaced text?
Now regular string in file autoreplace.txt is looking like:
se = SELECT
de = DELETE
...
etc

It's quite simple and good but we can have troubles when using aliases, like that:
SELECT * FROM special_environment se WHERE se.*** = ***
Instead of alias "se" we will take "SELECT" word.
Now i'am using symbol "~" because it's not used in SQL-syntax and i can't suddenly break my query (unlike of *, !, @, $, etc) but it's not comfortable to press shift+` to draw this character.
I think it's pretty idea to tell your program what key should be as "trigger". For example:
se%TAB% = SELECT
i.e. we typing se, pressing TAB (or any key we want, like: F1, Alt, etc) and "se" turning in "SELECT" and so on...
Btw, what about autocomplete ability by pressing TAB on commands like SELECT, DELETE, DROP, FROM, etc? Mainly it's useful in command window, but in SQL- and Test- windows it would very helpful too (we don't need to make additional autoreplace rules). For people who don't want to use this ability it could be switched off in Settings.

Maybe i'am blind and didn't noticed that in program settings (tried to find it in v11 and v12)?


2. Can anyone tall me where i can find full template syntax (old & new)?
Google and user's guide doesn't help, all i can find is a couple of examples from trouble-topics here smile

Thanks!

Re: Autoreplace & Templates stuff
alexjkeez0r #57812 04/12/18 05:12 AM
Joined: Feb 2003
Posts: 392
The Netherlands
Member
Offline
Member
Joined: Feb 2003
Posts: 392
The Netherlands
Hi,

Maybe my templates plugin can help? Download it from http://plugins.bar-solutions.com

Kindest regards,
Patrick

Re: Autoreplace & Templates stuff
patch #57813 04/12/18 07:13 AM
Joined: Mar 2007
Posts: 210
Rostock, Germany
Member
Offline
Member
Joined: Mar 2007
Posts: 210
Rostock, Germany
Hi,

to avoid such problems use additional #

s*#=select * from
sc#=selelct count(1) from
...




There is no shortcut for experience(d).

PL/SQL Developer Version 10+11+12, Query Reporter Version 3.2.0.300
Oracle 11g,12c
Windows Server 2003/2008
Windows 10 Professionel 64 bit




Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.032s Queries: 14 (0.009s) Memory: 2.5070 MB (Peak: 3.0420 MB) Data Comp: Off Server Time: 2024-05-10 18:27:59 UTC
Valid HTML 5 and Valid CSS