{"id":356,"date":"2022-01-07T18:30:55","date_gmt":"2022-01-07T21:30:55","guid":{"rendered":"https:\/\/gladiston.net.br\/?page_id=356"},"modified":"2022-07-13T16:05:35","modified_gmt":"2022-07-13T19:05:35","slug":"refatorando-nomes-numa-selecao-de-linhas","status":"publish","type":"page","link":"https:\/\/gladiston.net.br\/en\/programacao\/lazarus-ide\/refatorando-nomes-numa-selecao-de-linhas\/","title":{"rendered":"Refactoring names in a selection of lines"},"content":{"rendered":"<p>Sometimes in a marked block of text we want to change the name of variables or objects, of course we can always use search\/replace. But there is a better alternative, rename as you type and swap all occurrences within the selection. As it is harder to explain than to show, so watch the video and learn:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Productivity with the Lazarus IDE: Refactoring names into a selection of lines\" width=\"580\" height=\"435\" src=\"https:\/\/www.youtube.com\/embed\/Gr_7PH8IziI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Use this feature whenever you want to rename an object within a selected block, never use this feature for an entire unit, for this case you should use the\u00a0<strong>refactoring<\/strong>\u00a0that the IDE has.<\/p>","protected":false},"excerpt":{"rendered":"<p>As vezes num bloco de texto marcada desejamos alterar o nome de variaveis ou objetos, claro que sempre poderemos usar o search\/replace. Por\u00e9m h\u00e1 uma alternativa melhor, renomear enquanto digita e trocar todas as ocorr\u00eancias dentro da sele\u00e7\u00e3o. Como \u00e9 mais dificil explicar do que mostrar, ent\u00e3o veja o v\u00eddeo e aprenda: Use este recurso [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":159,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":{"footnotes":""},"class_list":["post-356","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":2,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/356\/revisions"}],"predecessor-version":[{"id":480,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/356\/revisions\/480"}],"up":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/159"}],"wp:attachment":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/media?parent=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}