-
Tags
Acceptance Test-Driven Development ALM blog-o-sphere Books Business Central C/AL C/SIDE cleanup communities customersource DDC Dynamics Error external blog functions Help how-to NAV NAV 2009 NAV 2009 R2 NAV 2009 SP1 NAV 2013 NAV 2015 NAV 2016 NAV 2018 Online Help OnValidate PartnerSource Report RTC software testing TDD Team Foundation Server TechDays test test-driven development testability testability features test automation Tools translation undocumented feature VALIDATE validation Visual Studio
-
Archives
- July 2023
- April 2023
- March 2023
- July 2022
- May 2022
- February 2022
- January 2022
- December 2021
- November 2021
- July 2021
- March 2021
- February 2021
- January 2021
- November 2020
- October 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- December 2019
- November 2019
- July 2019
- May 2019
- March 2019
- January 2019
- December 2018
- September 2018
- July 2018
- May 2018
- April 2018
- March 2018
- January 2018
- December 2017
- June 2017
- April 2017
- March 2017
- February 2017
- October 2016
- August 2016
- March 2016
- December 2015
- November 2015
- October 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- June 2014
- April 2014
- March 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- April 2013
- March 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- July 2012
- June 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
Comment and Uncomment Selection – v2.0
Last year was the year of (the release of) NAV 2015. A major new release bringing NAV another step forward. As before it was presented at a number of events of which I did attend a significant number. Directions US, Dutch Dynamics Community, Directions EMEA and NAV TechDays. And apart from the major part of the content they all had one striking thing in common.
Now picture yourself sitting in those rooms at these events, where various speakers are delivering their well prepared presentation. Envision what they are presenting and how the audience is reacting to that. Enthusiasm? Disappointment? Annoyance? Amazement? Or as diverse that all these emotions show up at the same time … I recon Microsoft was quite happy with the positive (I even think enthusiastic) reception that they got for the tablet client. Surely given the effort they have put in it and the goal they want to achieve. And maybe some more other new features.
Thinking however of this one, I guess this was unexpected and … inexpensive. If the sound level of the applause would have been measured, it by far would be number 1. And it was exactly the same on all 4 conferences. Whether Dmitry Chadayev showed it in between all the more sophisticated technical feature during the key note sessions in San Diego; or Arend-Jan Kauffmann demoed it at the Dutch Dynamic Community event in Nuland; Stuart Glasson mentioning it shortly during a O365 integration session in Poznan; or, who was it, did the same in Antwerp. In all cases the Comment and Uncomment Selection feature did rouse the audience. It surely made me laugh.
But to be honest, it also made me somewhat disappointed. As IMHO it is not complete. Surely it’s great that we can (un)comment a block of code in one action and not having to use the curly brackets to do this efficiently. But I hardly uncomment blocks of code temporarily. However I do it frequently when replacing/removing existing code by new code, like in this small example:
But the Comment and Uncomment Selection feature does not support this as comment slashes are always added at the start of a line, i.e. on the first position, and not related to the indentation of the lines being commented.
So I suggest to have v2.0 for the Comment and Uncomment Selection feature by means of a setting on the Options:
Comment and Uncomment Selection – 2.0 will allow you to comment code as is now possible in NAV 2015, i.e. Comment Selection=Normal. Or (new) it will allow you to comment code in such a way that the slashes are put a the most left indentation position of the selected lines, i.e. Comment Selection=Indented.
If you agree please go to my msconnect entry and vote for it.