Today is my first day with Python and I started Using Pycharm Community edition in my Mac. This IDE is really good but one thing annoyed me a lot.
Is there any way I can remove the whole path from showing every time I run a program?
Wanted to remove this Path :
/Users/rajvivan/PycharmProjects/Python/venv/bin/python /Users/rajvivan/PycharmProjects/Python/App.py
Would just like to see the exact responses from the program:
First Day in Python
Hello, World!
There is no option to hide it completely, you can only make it appear folded by adding a pattern like /bin/python in File | Settings | Editor | General | Console, Fold console lines that contain.
In watching the Bro Code channel on Youtube, he changed the font color of the file path so that it's camouflaged. His words not mine just thought I'd share. I can't find the exact area that he's referring to as of yet so if someone else see's it, please share for the rest of us.
Thank you
Based on Bro Code's response I believe the attached is what he was referring too. This is what I came up with. If you goto Help>Find Action>output you'll see Console//System output. Change/Camouflage the color codes as in the picture. Hopefully this works for others.
If you copy the path into
File | Settings | Editor | General | Console`
and paste it as new Fold console lines, it will hide the line as <1 internal line>.
Related
I'm in the process of switching (with some specific PHP production context) from Sublime Text(4x) to PhpStorm (2022.2).
I am of course trying to migrate as many features/habits as possible, as identical as possible to my new environment. Many things I have managed to do but I have a showstopper when it comes to using/keymapping the Home-/Pos1-Button as I was used to.
What I want:
Being somewhere in a line of (PHP) code I want to press the Home-/Pos1-Button to immediately get to the (really) first character(0) of the line which is the widespread default behaviour of that key.
What I get (problem):
When I hit that button once PhpStorm IDE moves the caret to the beginning of the first word/non-whitespace character of the current line and I need to hit the key again to really get to the beginning of the line. I have tried a couple of things but I get the feeling this is "intended" non-configurable behaviour...
Any help would be greatly appreciated.
I tried googling and configuring Settings > Editor > Keymap in many ways but did not succeed...
Go to Settings (Preferences on macOS) | Editor | General | Smart Keys | Home moves caret to first non-whitespace character -> disable.
With IntelliJ 2021.1, I have noticed the search of files or words across a project is a bit flakey.
So if you paste a word to search with cmd + shift + f, it struggles to find all the words, and if you enter it from beginning it is better but still problematic.
Even double shift is struggling to find files.
I didn't notice such issues with previous version.
It's a known bug.
Please add -Didea.indexes.clear.non.indexable.file.data=false into Help | Edit Custom VM Options and invoke File | Invalidate Caches/Restart.. | Invalidate and Restart action as a workaround.
When I am working in an IDE, I always see this line that visually shows the start and end of a method, for loop, if-else statement, etc:
I was wondering does anybody know what this is officially called? I would like to know this so that I can research how to implement one in my own program.
Intellij refers to these as Indent Guides and from googling that seems to be an accepted term for what you are describing.
Note:
In IntelliJ you can toggle them on and off Settings | Editor | General | Appearance | Show indent guides
Does anyone know a way to search for all (and only) the commented code across all classes in a java project?
For example, using "Find in Path" to search for "//" is not what I want because it also returns URIs (http://......). I want a specialized way to do that.
Thanks in advance.
You can use Structural Search in IntelliJ IDEA.
Below screens as for the version 2019.1.1 (Ultimate Edition) (Works for IntelliJ IDEA 2020.3 too)
Go to Edit > Find > Search Structurally...
File type should be Java and select any path wherever you like to search.
From the top right corner click on gear icon and click on Existing Templates...
Then from Java > Comments, Javadoc and Metadata select comments
Then it will add /* $CommentContent$ */ to the Structural Search window as for the first screenshot.
This will find all the commented code (including Javadoc) from the selected path.
For more info refer : Structural search and replace
About the best you could do would be the Find In Path and use a REGEX of:
^//
That will fix your http:// problem. But it won't find comments that don't start at the beginning of a line. I suppose you could write a much more complex REGEX to find "//" but not proceeded by http: But of course comments can be in /* */ blocks too. So it all depends on how absolute you want to get.
As of intellij 2020.3, there is an inspection for commented out code in java:
Java | Code maturity | Commented out code
So if you want a list of commented out code, you can:
right+click your project, module, subfolder, directory or file where you want to search.
click analyze > inspect code
Click OK
This should open the inspection result window where all your commented out code will be grouped under Java | Code maturity | Commented out code :
If you don't want intellij to search for other issues too, you can create a new profile in File | Settings | Editor | Inspections exactly for that and select it in the analyze dialog.
For some reason I managed to get a v sign (like a check sign) next to my line numbers in IntelliJ and I have no idea how it got there. It also marks as a dark blue/black error mark on the right side.
Not only do I wanna know how to remove it because it annoys the hell out of me, but I wanna know how to turn it on again too! ;) Could come in handy some other time :)
Edit | Toggle Bookmark (F11).
Edit: (2017/08/23)
In IntelliJ 2017 it is under Navigate | Bookmarks | Toggle Bookmark (F3)