Discussions
Categories
- 197.1K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.7K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 555 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.3K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 466 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Search tool in 22.2

My search in SQL-Worksheet editor seems to be stuck, and searches only from cursor (i.e. where the mouse has had it's focus; not from a "cursor c1 is..." statement)
If I focus, say, on line 224 of the code file, and search for a word, then jump to the top of the file and hit F3, the next highlighted word would be the one on or later than line 224, even though the same word exists on line 118, for instance.
What am I missing? There must be some search option that I have not figured out :)
A. In this example, I place the mouse in the middle of the word varchar2 on line 5 and hit Ctrl+F
varchar2 is the search string, but 0 of 0 are found.
B. In this example, I've placed the mouse cursor at the very end of line 4, hit Ctrl+F and typed "varchar2"
I then escape, go the the top of the editor and hit F3:
Lines 3 and 4 are skipped.
Answers
-
I've just tried this and it behaves as I would expect.
As you type varchar2, it highlights all the instances of varchar2. After going to the beginning of the file, F3 finds the first instance.
Looks like there is something wrong with your installation. Are any messages appearing in the log window?
-
you don't have the wrap-around button toggled on
-
Ah, thanks. I thought I was missing something.
Although I thought that wrap around only meant: "When reaching the bottom of the file, continue from the top". That's why I didn't think it was vital for searching back.
BTW wouldn't it be cool, if the search tool would allow to limit search to a specific context, such as within a certain procedure, or between lines , for instance [214 and 518]?
-
It does
select/highlight your search area, then toggle the 'Selected Text Only' button
-
In many cases, it is difficult to keep a large number of rows selected. For instance, if you have to make some changes to a large package body, you search for some string, then F3 is very useful. You study the code that you find, make some changes or leave it as it is, and use F3 to go to the next one. In such case, the searched context does not remain selected, and F3 will run to, say, line 14556 where the change is not relevant. The changes to be made are not necessarily the same "replace" value.
I wish, all the procedures I have to change would "fit on one screen", as the recommendation often is - but alas, they are seldom this short :-)
-
user9540031 thanks, these tips are helpful.
But the "big catch" described is the reason I ask.
In good old MVS editor (that's IBM Mainframe; ancient history to most people) with line numbers on the left side, you could enter 2 markers and thus search between them. I'd say they were a lot like Breakpoints in terms of debug, or named bookmarks. Now if we could place a couple of names bookmarks and limit search to between the two, that would solve the big catch :-)
-
We're not going to be doing significant feature improvements in the current SQL Developer.
What you'll see instead (soon), is a brand new desktop platform for working with your Oracle Database. And it'll have ALL the modern editor/IDE bells & whistles.
-
thatJeffSmith-Oracle How exciting!