<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hotkey to put words into single quotation quickly ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720831#M223326</link>
    <description>&lt;P&gt;Those macros will work in EG:&lt;/P&gt;
&lt;P&gt;While in a program, open Program | Manage Macros and Snippets then click on Create to open a window looking like those in screenshots posted by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 06:34:44 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-02-22T06:34:44Z</dc:date>
    <item>
      <title>Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720784#M223309</link>
      <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normally SAS supports a few hotkeys for us to deal with coding conveniently.&amp;nbsp; For example, if we want to comment the selection with line comments, we can use 'Ctr+/"&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Before hotkey*/

abcdef

/*After hotkey Ctr+ / */

/*abcdef*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also google some other useful hotket as the link &lt;A href="https://v8doc.sas.com/sashtml/win/zortcuts.htm" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;However, I try to find a hotket that can put words into single quotation marks. In detail&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Before hotkey*/

abcdef

/*I try to find a hotkey to generate this result */

'abcdef'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I try to simplify my work and learn as much as I can &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;
&lt;P&gt;P/S: I did a search but it seems to me that there is no hotkey so far for doing so, need a macro as the &lt;A href="https://communities.sas.com/t5/SAS-Programming/add-single-quotes-and-commas-to-a-list-of-words/td-p/437511" target="_self"&gt;link&lt;/A&gt; here.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 22:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720784#M223309</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-21T22:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720793#M223314</link>
      <description>&lt;P&gt;It really depends what editor you are using.&amp;nbsp; Are you using one of the many SAS interfaces to edit with?&amp;nbsp; Which one?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 22:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720793#M223314</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-21T22:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720798#M223315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If&lt;/EM&gt; you're using the traditional Display Manager interface with the Enhanced Editor, it's fairly easy to create a keyboard macro for this purpose and assign a hotkey. I've just done this, following the general instructions of &lt;A href="https://communities.sas.com/t5/SAS-Programming/Referencing-marked-text/m-p/491164/highlight/true#M128748" target="_blank" rel="noopener"&gt;this 2018 post&lt;/A&gt;. Actually, I've created two macros:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put &lt;EM&gt;current word&lt;/EM&gt; into single quotes (i.e., place the cursor inside or immediately after the word, then hit shortcut key):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quoteword.png" style="width: 500px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55006i2728E8203DF66C7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="quoteword.png" alt="quoteword.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put &lt;EM&gt;selected text&lt;/EM&gt; (may include several words) into single quotes:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quotesel.png" style="width: 500px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55005iB8066B56F0D55F1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="quotesel.png" alt="quotesel.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 23:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720798#M223315</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-02-21T23:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720813#M223321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS EG. It is my interface&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1613967821873.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55009iF916B6420AA8A314/image-size/medium?v=v2&amp;amp;px=400" role="button" title="My97_0-1613967821873.png" alt="My97_0-1613967821873.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 04:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720813#M223321</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-22T04:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720820#M223324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is what I have now with my interface...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55011i0BDC91CA29320987/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55012i10E61B7DF2C80DD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the blur of the pictures but I took it by my phone.&lt;/P&gt;
&lt;P&gt;As we can see, there is no option called "Keyboard macro".&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE:&lt;/P&gt;
&lt;P&gt;I just have a look and do some Google search, and then I figure out that &lt;STRONG&gt;it works in SAS Base&lt;/STRONG&gt; while &lt;STRONG&gt;I am using SAS EG&lt;/STRONG&gt;, so is there any reasonable solution for SAS EG please ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 04:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720820#M223324</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-22T04:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720831#M223326</link>
      <description>&lt;P&gt;Those macros will work in EG:&lt;/P&gt;
&lt;P&gt;While in a program, open Program | Manage Macros and Snippets then click on Create to open a window looking like those in screenshots posted by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 06:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720831#M223326</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-22T06:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720834#M223328</link>
      <description>&lt;P&gt;Well, this is interesting, some commands don't work at all, "insert char" is one of those.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Com_EditorMacro.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55018i4BA4ED27CDEAA212/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Com_EditorMacro.png" alt="Com_EditorMacro.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 06:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720834#M223328</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-22T06:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720836#M223329</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for pointing this awesome point.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even I assign and test successfully, however, I have something in my mind as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my interface, it will not display totally like the Table that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;shows, my interface displayed like that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1613976926807.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55019iA88A04EE0F316CCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="My97_0-1613976926807.png" alt="My97_0-1613976926807.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;First, the three single quotations are a little bit weird, why it is 3 sngle quotations?&lt;/P&gt;
&lt;P&gt;Second, it is super hard to type a character in the "Insert character" box, do you face the same problem?&lt;/P&gt;
&lt;P&gt;Third, It displays "&lt;STRONG&gt;Move caret.&lt;/STRONG&gt;.." rather than "&lt;STRONG&gt;Move curse&lt;/STRONG&gt;...", easy to confuse other users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 06:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720836#M223329</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-22T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hotkey to put words into single quotation quickly ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720837#M223330</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lol, I try to push the single quote a lot of time until it works.....seems to be a bug or the like.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 06:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hotkey-to-put-words-into-single-quotation-quickly/m-p/720837#M223330</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-22T06:59:09Z</dc:date>
    </item>
  </channel>
</rss>

