cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-768704%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EShortcut%20to%20select%2Fhighlight%20%20variable%20name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-768704%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EBefore%20the%20JMP16%20Name()%20parser%20change%20for%20variable%20names%20(examples%20shown%20below)%2C%20the%20Ctl%2B%20%5D%20keyboard%20shortcut%20would%20highlight%2Fselect%20the%20entire%20variable%20name%20and%20the%20bounding%20().%26nbsp%3B%20This%20was%20very%20convenient%20for%20copying%2Fpasting%20variable%20names%20in%20my%20JSL%20code.%26nbsp%3B%20Does%20a%20similar%20or%20new%20keyboard%20shortcut%20exist%20that%20does%20the%20same%20thing%20but%20for%20the%20newly%20constructed%20variable%20name%3F%26nbsp%3B%20That%20is%2C%20highlight%2Fselect%20the%20newly%20constructed%20variable%20names%20bounded%20by%20either%20the%20quotes%20or%20the%20leading%20quote%20and%20trailing%20%22n%3F%26nbsp%3B%20In%20the%20absence%20of%20a%20keyboard%20shortcut%2C%20does%20anyone%20have%20any%20suggestions%20for%20how%20to%20accomplish%20this%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%22taxable%20income(%202011%20)%22n%20%3D%20456000%3B%0Atax%20%3D%20.25%3B%0APrint(%20tax%20*%20%22taxable%20income(%202011%20)%22n)%20%3B%0A%2F%2F114000%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22terapin_1-1719423985775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22terapin_1-1719423985775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22terapin_1-1719423985775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65594i3C541DBB0F77F43D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22terapin_1-1719423985775.png%22%20alt%3D%22terapin_1-1719423985775.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-768704%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAutomation%20and%20Scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-769685%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Shortcut%20to%20select%2Fhighlight%20%20variable%20name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-769685%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20don't%20think%20this%20is%20possible.%20You%20could%20create%20a%20wish%20list%20item%20for%20this.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20don't%20generally%20use%20variable%20names%20like%20that%20but%20to%20make%20the%20selection%20a%20bit%20faster%20you%20can%20use%20combination%20of%20Ctrl%2BShift%2BLeft%2FRight%20arrow%20(and%20Shift%20%2B%20End%2FHome%20%2B%20Ctrl%20%2B%20Left%2FRight%20Arrow).%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
terapin
Level VI

Shortcut to select/highlight variable name

Before the JMP16 Name() parser change for variable names (examples shown below), the Ctl+ ] keyboard shortcut would highlight/select the entire variable name and the bounding ().  This was very convenient for copying/pasting variable names in my JSL code.  Does a similar or new keyboard shortcut exist that does the same thing but for the newly constructed variable name?  That is, highlight/select the newly constructed variable names bounded by either the quotes or the leading quote and trailing "n?  In the absence of a keyboard shortcut, does anyone have any suggestions for how to accomplish this?

 

"taxable income( 2011 )"n = 456000;
tax = .25;
Print( tax * "taxable income( 2011 )"n) ;
//114000

 

 

terapin_1-1719423985775.png

 

1 REPLY 1
jthi
Super User

Re: Shortcut to select/highlight variable name

I don't think this is possible. You could create a wish list item for this. 

 

I don't generally use variable names like that but to make the selection a bit faster you can use combination of Ctrl+Shift+Left/Right arrow (and Shift + End/Home + Ctrl + Left/Right Arrow).

-Jarmo

Recommended Articles