Replies: 2 comments 3 replies
-
Hi @ZMcManus :)
There is not. We will only support showing source dates in the gutter of the editor.
Control/Command + F: https://code.visualstudio.com/docs/getstarted/keybindings
There is not a way.
In the connection settings, if you enable 'Diff mode' as the source tracker, like this: After a restart to enable Diff mode, hovering over the gutter will allow you to enter in a source date to filter: Which will then highlight lines that match the filter. |
Beta Was this translation helpful? Give feedback.
-
Just wanted to expand on some of Liam's responses: First of all, I have personally found the "Edit mode" source date tracking nearly unusable. In theory, edit mode ought to be a better analogue to what SEU does, but in practice VS Code doesn't expose enough information (at least not in any reasonably straightforward manner) to the extension to make it workable. Diff mode still has a few quirks, and it works best when (1) your edits are relatively small, and (2) you save your work fairly often. (Actually, saving often is simply one way of helping your edits stay small, since the diff logic compares the current state with the last-saved state, as far as I'm aware. Liam can correct me if I'm wrong about that.) The source date search in this extension is significantly better than what SEU provides, in two ways: (1) It lets you search for a date range. (2) It highlights all the lines found by your search, so you see them all at once, in context. Besides hovering over the gutter, you can also access this search by clicking on the "Date Search" area of the status bar on the lower right of the VS Code window. I find this faster and simpler than the hover method. The number of occurrences of a search string is a standard feature of the find-and-replace functionality in VS Code (and pretty much any other modern editor). It isn't something provided by this extension. Finally, while adjusting source dates isn't a provided feature, it is relatively easy to do using a bit of SQL. You can enter and execute the SQL with whatever you're comfortable with (e.g. STRSQL, the "Run SQL Scripts" feature in Access Client Solutions, SQL functionality within VS Code provided by either this extension or one of the related ones, etc.). For example, if it has taken me three days to complete one particular modification, I may set all of the relevant lines to a single date (mainly to make it easier for folks searching for it using SEU): create alias srcmbr for mylib.qrpglesrc(mymbr);
update srcmbr
set srcdat = 221109
where srcdat between 221107 and 221109;
P.P.S. How do you set selected lines (but not all of them) to a specific date in SEU? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I a new to VS Code for IBM i. I have used SEU exclusively for IBM i development and VS for some .net development.
I have enabled source dates, but cannot see them in the editor.
I have tried using the "source dates in gutter" option, but would rather they appear as they do in SEU - at the end of the record.
Is there a way to make this happen using VS Code for IBM i?
Also, is there a way to search on the source change dates while in an individual source file member?
Often I would like to search for any changes that were done after a specific date.
My preference would be to search line by line - that is, move down (or up) the source file member to the next changed date.
One feature that I like with SEU is the ability to see the number of occurrences of a search string.
Is there a way to do this within VS Code for IBM i?
Can I search and replace on a source change date?
Or reset all selected records to a specific date? This is another feature of SEU that I like to use on occasion.
Thank you,
Zee
Beta Was this translation helpful? Give feedback.
All reactions