title says everything plus: - development language Lua - code revision control system - Perforce (integrated with IntelliJ IDE)
-
1Related: stackoverflow.com/questions/3435581/…David C– David C2014年11月06日 17:21:11 +00:00Commented Nov 6, 2014 at 17:21
-
You should change the accepted answer, even @duffymo the author of the currently accepted answer says so in the comments below.bad_coder– bad_coder2023年12月28日 00:25:50 +00:00Commented Dec 28, 2023 at 0:25
2 Answers 2
You can hack it via the native, global search:
- Ctrl + Shift + F (to open global search)
- Use regex mode (check the
.*checkbox) - In the searchbox, enter only a caret "^" (without the quotes)
- You may want to limit the search to a specific directory, via the "directory" tab
- Hit the "Open in Find Window" button on the bottom-right
- If it asks whether you want to continue, press "Continue"
The number of lines is shown at the end of the "Found occurrences" sentence.
Notes:
- In regex, the caret (^) denotes the start of a line, except when inside square brackets, in which case it denotes negation
- If you wanted to count non-empty lines, you could instead use "
^.*\S" (without quotes), which signifies "The start of a line (^), followed by any number of characters (except newline) (.*), followed by a non-whitespace character (\S)"
3 Comments
You can either turn on the display of lines of code for a single file by right clicking in the left gutter and highlighting "display lines of code". Or you can do it for your entire project by downloading the Statistic plug-in. It's very nice indeed, because it shows LOC and other metrics for your entire project.