Comments (9)
Hi Jeremy, thanks for your idea. I'm currently on vacation and as it's pretty tricky to code while hiking, I can't make it this week :)
I'll come back to you if I find some time.
Best,
David
from al-codeactions.
Hi Jeremy, I added a new functionality for that. I'll release it shortly :)
Here you can already see how it'll look like.
Any suggestions?
https://github.com/DavidFeldhoff/al-codeactions/blob/develop/images/RefactorValidate.gif
from al-codeactions.
Precisely.
So, given these lines, you select all three:
SomethingJournal."Posting Date" := newDate;
SomethingJournal."Document No." := newDocNo;
SomethingJournal."Amount" := newAmount;
And after one CodeAction, that selection becomes:
SomethingJournal.Validate("Posting Date",newDate);
SomethingJournal.Validate("Document No.",newDocNo);
SomethingJournal.Validate("Amount",newAmount);
from al-codeactions.
I just released it. Feel free to test it and close the issue afterwards :)
from al-codeactions.
I love it lots! That's marvelous.
Is it possible to expand, just as it is, to be able to select a region of code, say 5 (or even 20 for the crazy) lines of field assignments, and then have the same CodeAction apply to each of 5 the 5 lines?
from al-codeactions.
Don't know exactly what you mean :)
So yes, if there are 20 lines directly underneath, you just have to select all of them and execute the codeAction just once. Is that what you're asking for?
from al-codeactions.
That'll work :)
from al-codeactions.
Super good. Though I lack permissions in GitHub's Issues to Close this.
from al-codeactions.
Glad to hear !
from al-codeactions.
Related Issues (20)
- [Bug] "Promote Action" does not add actionRef HOT 2
- [Improvement] Extract to Procedure could avoid var for paramater variables HOT 2
- Extract to procedure - Preceding Comments are missing HOT 4
- [Question] Linux support HOT 1
- Generate in-object Permission property HOT 2
- [Create Procedure] adds "internal" even if the caller is in a different app HOT 4
- Extract to Procedure unavailable in larger projects HOT 13
- Extract to procedure is not available after installing Pre-Release version HOT 18
- Extract Label Tries to Rename Wrong Thing HOT 7
- 'Add OnBefore/OnAfter publisher' unavailable HOT 3
- "Create procedure" on Rec inside a page extension will create a function inside the page extension HOT 1
- Promote Action ignores "" HOT 1
- Possible bug in "Reference to Built in functions" HOT 1
- Many functionalities are broken with AZ AL Dev Tools/AL Code Outline v3.0.56
- Rport functionality and design HOT 1
- Create overload does not work anymore HOT 3
- Slows down other QuickFixes HOT 1
- Remove unused Variables Error HOT 2
- Slows down intellisense HOT 4
- Poor Performance with AL Lang v13 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from al-codeactions.