Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72832

Using ctrl+arrow to edit text (variable names) in do-file editor.

$
0
0
This is either a feature request, or just request for recommendations of a better text editor. I've tried, but haven't made it a habit, to edit in Notepad ++ and run my code in batch. That may be what I need to do to make this work, but I don't yet see how to do this in Notepad++ either (haven't dug too deeply yet).

Problem:

When you're editing text, you can press ctrl+arrow to move to the next word. Thus, "space" serves as a delimiter. Some other characters do the same in Stata. For example, when editing a file path you can skip to the next level of the address, so "" and "/" must be seen by Stata as delimiters too.

"_" is not seen as a delimiter (or more empirically, the same cursor behavior doesn't work wrt "_").

I make long, descriptive variable names (via JS Long's advice). So I might have several variables with the same root (e.g., "personality_score") and different versions of this like "personality_score_v2", "personality_score_2cat", "personality_score_5cat", and so on.

Would be great if I could select sections of these var names the same way I do sections of a file path.

I'm working in Stata 14

Anyone know if this can be set in a text editor like Notepad++ or UltraEdit? I haven't looked too deeply yet, but I don't see it right off in NP++.

Thanks in advance.

Viewing all articles
Browse latest Browse all 72832

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>