{"id":25263,"date":"2021-06-09T12:15:19","date_gmt":"2021-06-09T11:15:19","guid":{"rendered":"https:\/\/arquiconsult.com\/?p=25263"},"modified":"2026-01-19T14:51:19","modified_gmt":"2026-01-19T14:51:19","slug":"visual-studio-code-taking-advantages","status":"publish","type":"post","link":"https:\/\/arquiconsult.com\/pt-br\/visual-studio-code-taking-advantages\/","title":{"rendered":"#03 VISUAL STUDIO CODE: TAKING ADVANTAGES OF FIND &#038; REPLACE"},"content":{"rendered":"<div class=\"services_vertical horizontal_services row\" style=\"background-color: #f7f7f7; padding: 25px; border-radius: 5px; text-align: left;\">Visual Studio Code is a modern IDE that is used by developers of many other programming languages apart from AL. We can, and should, learn about this IDE that allows us to take our way of programming to the next level. A cool and powerful tool that is much easier to use in VS Code than it was in C\/SIDE is Find and Replace. Using Regular Expressions in Find and Replace, we can now do things that we could only dream of with C\/SIDE.<\/div>\n<p style=\"font-weight: 400; text-align: left;\"><strong>Examples<\/strong><\/p>\n<ol style=\"text-align: left;\">\n<li>Adding missing ApplicationArea to Pages and Page Extensions controls:<\/li>\n<\/ol>\n<ul style=\"font-weight: 400;\">\n<li style=\"text-align: left;\"><strong>Find:<\/strong>\u00a0(action|part|systempart|field)(\\()((.)*(\\s)*(\\n)*(\\{))[\\s]*((?![^{0}]*ApplicationArea[^{0}]*\\})[^{0}]*)(\\})<\/li>\n<li style=\"text-align: left;\"><strong>Replace:<\/strong>\u00a0$1$2$3ApplicationArea = Basic, Suite;$8$9<\/li>\n<li style=\"text-align: left;\"><strong>Use Regular Expression:<\/strong>\u00a0Yes<\/li>\n<li style=\"text-align: left;\"><strong>Files to Include:<\/strong>\u00a0Your Page and Page Extension project directories.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"size-full wp-image-37725 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2021\/09\/Adding-missing-ApplicationArea-to-Pages-and-Page-Extensions-controls.png\" alt=\"Adding missing ApplicationArea to Pages and Page Extensions controls\" width=\"561\" height=\"395\" title=\"-\"><\/p>\n<p style=\"text-align: left;\">2. Adding missing DataClassification to Table and Table Extension Fields:<\/p>\n<ul style=\"font-weight: 400;\">\n<li style=\"text-align: left;\"><strong>Find:<\/strong>\u00a0(field)(\\()((.)*(\\s)*(\\n)*(\\{))[\\s]*((?![^{0}]*DataClassification[^{0}]*\\})[^{0}]*)(\\})<\/li>\n<li style=\"text-align: left;\"><strong>Replace:<\/strong>\u00a0$1$2$3DataClassification = CustomerContent;$8$9<\/li>\n<li style=\"text-align: left;\"><strong>Use Regular Expression:<\/strong>\u00a0Yes<\/li>\n<li style=\"text-align: left;\"><strong>Files to Include:<\/strong>\u00a0Your Table and Table Extension project directories.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"size-full wp-image-37728 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2021\/09\/Adding-missing-DataClassification-to-Table-and-Table-Extension-Fields.png\" alt=\"Adding missing DataClassification to Table and Table Extension Fields\" width=\"561\" height=\"431\" title=\"-\"><\/p>\n<p style=\"text-align: left;\">3. Removing [Scope(Internal)] from procedures:<\/p>\n<ul style=\"font-weight: 400;\">\n<li style=\"text-align: left;\"><strong>Find:\u00a0<\/strong>[Scope(&#8216;Internal&#8217;)]<\/li>\n<li style=\"text-align: left;\"><strong>Replace:<\/strong>\u00a0(empty)<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"size-full wp-image-37731 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2021\/09\/Removing-ScopeInternal-from-procedures.png\" alt=\"Removing [Scope(Internal)] from procedures\" width=\"559\" height=\"341\" title=\"-\"><\/p>\n<p style=\"text-align: left;\">4. Switch Report RDLC or WordLayout path:<\/p>\n<ul style=\"font-weight: 400;\">\n<li style=\"text-align: left;\"><strong>Find:\u00a0<\/strong>(RDLCLayout|WordLayout)( = )(.)*\\\/<\/li>\n<li style=\"text-align: left;\"><strong>Replace:<\/strong>\u00a0$1=&#8217;src\/Report\/Layout\/<\/li>\n<li style=\"text-align: left;\"><strong>Use Regular Expression:<\/strong>\u00a0Yes<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"size-full wp-image-37734 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2021\/09\/Switch-Report-RDLC-or-WordLayout-path.png\" alt=\"Switch Report RDLC or WordLayout path\" width=\"559\" height=\"390\" title=\"-\"><\/p>\n<p style=\"text-align: left;\">5. Removing ID\u2019s from procedures, parameters and variables when copying from txt file exported from C\/SIDE.<\/p>\n<ul style=\"font-weight: 400;\">\n<li style=\"text-align: left;\"><strong>Find:\u00a0<\/strong>(@(\\d+))<\/li>\n<li style=\"text-align: left;\"><strong>Replace:<\/strong>\u00a0(empty)<\/li>\n<li style=\"text-align: left;\"><strong>Use Regular Expression:<\/strong>\u00a0Yes<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"size-full wp-image-37737 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2021\/09\/Removing-IDs-from-procedures-parameters-and-variables-when-copying-from-txt-file-exported-from-CSIDE.png\" alt=\"Removing ID\u2019s from procedures, parameters and variables when copying from txt file exported from CSIDE\" width=\"560\" height=\"469\" title=\"-\"><\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-25263\" data-postid=\"25263\" class=\"themify_builder_content themify_builder_content-25263 themify_builder tf_clear\">\n    \t<!-- module_row -->\n\t<div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_xbzv0 tb_first tf_clearfix\">\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_703o1 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module text -->\n<div  class=\"module module-text tb_h2sa197 arquitps-data  \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n    <p><script>\njQuery(\".tbp_post_month:contains(Janeiro)\").html(\"January\");\n\njQuery(\".tbp_post_month:contains(Fevereiro)\").html(\"February\");\n\n\njQuery(\".tbp_post_month:contains(Mar\u00e7o)\").html(\"March\");\n\n\njQuery(\".tbp_post_month:contains(Abril)\").html(\"April\");\n\n\njQuery(\".tbp_post_month:contains(Maio)\").html(\"May\");\n\n\njQuery(\".tbp_post_month:contains(Junho)\").html(\"June\");\n\n\njQuery(\".tbp_post_month:contains(Julho)\").html(\"July\");\n\njQuery(\".tbp_post_month:contains(Agosto)\").html(\"August\");\n\njQuery(\".tbp_post_month:contains(Setembro)\").html(\"September\");\n\njQuery(\".tbp_post_month:contains(Outubro)\").html(\"October\");\n\njQuery(\".tbp_post_month:contains(Novembro)\").html(\"November\");\n\njQuery(\".tbp_post_month:contains(Dezembro)\").html(\"December\");\t\n\n\n\n<\/script><\/p>    <\/div>\n<\/div>\n<!-- \/module text -->\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t\t<!-- module_row -->\n\t<div  data-anchor=\"sucesso\" data-hide-anchor=\"1\" data-lazy=\"1\" class=\"module_row themify_builder_row sucesso repeat tb_has_section tb_section-sucesso tb_vpmh262 tf_clearfix\" >\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_2jdy262 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module buttons -->\n<div  class=\"module module-buttons tb_1t5k262 buttons-horizontal transparent popmake-24705 large circle tf_textc\" data-lazy=\"1\">\n    \t<div class=\"module-buttons-item tf_inline_b\">\n\t\t\t\t\t\t\t<a href=\"#\" class=\"ui builder_button tb_default_color\" >\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"tf_inline_b tf_vmiddle\">Give as a Feedback and Suggest Questions<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t    \t<\/div>\n\t<\/div>\n<!-- \/module buttons -->\n\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t<\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio Code is a modern IDE that is used by developers of many other programming languages apart from AL. We can, and should, learn about this IDE that allows us to take our way of programming to the next level. A cool and powerful tool that is much easier to use in VS Code [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":37937,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1371],"tags":[2050,2048,2049],"acf":[],"_links":{"self":[{"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/posts\/25263"}],"collection":[{"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/comments?post=25263"}],"version-history":[{"count":1,"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/posts\/25263\/revisions"}],"predecessor-version":[{"id":121691,"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/posts\/25263\/revisions\/121691"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/media\/37937"}],"wp:attachment":[{"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/media?parent=25263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/categories?post=25263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arquiconsult.com\/pt-br\/wp-json\/wp\/v2\/tags?post=25263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}