Don't get me wrong, Pycharm is an amazing IDE, and with its faults, I've still continued to use it and adapt to its way of working. But its getting pretty tedious not being able to do what I want.
Like in other IDE's, I can CTRL+A to select all the text, somehow it almost always messed up in Pycharm, copying all text will result in what ever the INSERT key does, and deletes my content.
Clicking backspace doesn't delete the highlighted content, instead I have to deliperatly click the delete key, and this isn't exactly wrong, but it doesn't fit in with other IDE's.
I noticed when switching from Pycharm to another IDE, I was doing what I did in Pycharm and it just felt unnatural, is there a way to make Pycharm work like other IDE's?
If you go into File->Settings and select Keymap, there is a drop-down menu where you can select the emulation that you prefer including Emacs, Netbeans, and Visual Studio
Found this in another forum:
"Please disable IdeaVim plugin on the File | Settings | Plugins tab."
Worked for me.
Related
Something has changed in my VS code that doesn't allow me to type in my Terminal. I'm sure it's a config issue but not sure where to look. This is what I see:
I tried changing my Python version or shell showing on the terminal but no luck. How can I fix this?
I had the same problem when learning some PHP. After clicking on every option modifier available, I found that in the bottom Status Bar, there was a "Normal" view on the left.
Right-clicked, and selected "Hide Normal" and the cursor and my ability to write code came backImage of my VSCode showing VIM cursor
In the end I found that I had the VIM extension enabled and had not used its variables correctly. Either uninstall the extension or use its commands
Is it possible to drag and drop text in Python IDLE code editor to move or copy text, like you would in say Notepad++ ? This is a Windows installation.
You would think that there would be plethora of answers for this already, but I have come up empty.
I do not think this possible with out of the box IDLE. However this is a feature of the free community edition of PyCharm, check out this help page.
I am just learning python as my first programming language, and I just installed python 3.3, 64 bit on my windows 7 OS.
I installed komodo edit 8.0, and I am trying to print ('Hello world'). I set up the correct path so that I can access python through my command prompt.
From komodo, I saved my helloworld.py file to my desktop.
When I try to run the command prompt, I search for the file, and it says file not found, or file does not exist. I can open the folder from komodo, but it appears that it is empty. When I open the folder directly from my desktop, I see the file is in there, so it seems that komodo is not recognizing it.
How can I get Komodo to recognize my saved file and run it in python? I am very new so please go step by step if you can.
Thank you!
Many of the comments you've received recommend avoiding Komodo IDE. But you're not using Komodo IDE! You are using Komodo Edit, so the comments about IDEs just don't apply.
Sure, you could use Notepad++ or even plain old Notepad, but neither of those offers any real benefit over Komodo Edit. In fact, you would be losing a valuable feature of Komodo (both IDE and Edit version): realtime syntax checking.
I use Komodo IDE and like it quite a lot. If you want to run Python programs inside Komodo and debug them right there, Komodo IDE is a great choice.
One problem may be simply that you're expecting Komodo Edit to offer the same features as Komodo IDE. It doesn't. It's just a very nice editor. You need to run your Python code outside Komodo using the command line or other means. Just open a command prompt, cd to your directory, and type python yourfilename.py.
But you say you already tried that? It must be simply a matter of being in the wrong directory.
If you have your .py file open in Komodo, do a Ctrl+O right there, and the Open File dialog will show you the file's path at the top of the dialog. You can use Alt+D to select the path, and from there you can copy it and paste it into the command line if you need to cd to that directory.
If you'd like to use an interactive debugger (an excellent idea!) without paying for Komodo IDE, you can use PythonWin.
Install Mark Hammond's Python for Windows extensions. Included in this package is PythonWin. You can open your .py file in PythonWin and select File/Debug/Step In to start debugging your code. Then you can use the other commands on the File/Debug menu to step through it. Take note of the F10/F11/etc. keyboard shortcuts which give quicker access to these commands.
Whichever way you do it, I highly recommend using an interactive debugger like this when learning a new language. Being able to stop the code and look at your variables right then and there is a huge improvement over being limited to print statements for debugging.
So I disagree quite strongly with the recommendations against using an IDE like Komodo. The very first thing I look for when I learn a new programming language is an interactive visual debugger. I don't care too much whether that debugger comes packaged as part of an "IDE" or is a standalone debugger, as long as it shows the source code, makes it easy to single step, and shows the variables whenever it's paused.
Ok heres what I personally do.
Open run, type in cmd
Navigate to whatever directory my mypythonfile.py file is
Open whatever text editor you feel like ( personally i use notepad++ because it is NOT an IDE like kodomo, but just a pretty text editor.)
Type python mypythonfile.py and hit enter. This will run the program.
Open mypythonfile.py in text editor program.
Make changes to the python file.
Go back to the cmd window and press arrow up ( to go to the last typed command) and then press enter again, to run the program again.
Repeat steps 6-7 until your program is perfect.
It seems like you are having trouble with the Kodomo IDE instead of the actual learning python process. IDEs are complicated tools with lots of buttons that are scary. Learn the language first, then once you are comfortable there, then maybe you will use an IDE? Or maybe you will just keep using a text editor instead. Thats up to you.
Using IDLE and Python version 2.7.3. Only when I start a new file it highlights for a few lines and then just stops after I press F5. So all my text becomes plain black.
If there are equally good/better command line and editor combinations out there, you may always suggest them.
This happened to me too. Save it as .py (manually type .py in the document name), and the highlighting will come back.
Check the key binding for the toggle-auto-coloring option under Options -> Configure IDLE -> Keys -> Custom Key Bindings. The default is Ctrl+/. This should allow you to turn the syntax highlighting back on. (You can't toggle it off though, heh)
Works for me on both IDLE 2.7 and IDLE 3.3.3.
I usually have to save the file as .py before IDLE will do any syntax highlighting at all. Not sure why it would highlight for a few and then stop though. I've never had that happen.
Is this under Windows? Is it possible your file association for Python files have possibly changed? (not quite sure why/how this could happen, but perhaps something worth checking)
I've been googling lots and this is getting really frustrating. It doesn't act like idle.
Example:
else:
name = 'World'
print 'Howdy', name
print 'yay'
but in Notepad++
else: # i press enter and this is what it does
lands me here
But I want to be able to do like in idle: after the : I can just press enter and keep on going. My English isn't that great.
I have my filetype set to Python etc. and my format to unix.
This is what you want:
Settings > Preferences > MISC. > Auto-Indent (checkbox)
--
Sometimes people ask, "How can I do x in program y?"
I have a dream that one day "Use program z instead" will not be the most popular response.
I played a bit with python in Notepad++ and I had a problem with the tab.
Since in python your indentation is really important but notepad ++ put space instead of a tab.
So to change to tab you need to go in notepad ++ Menu Settings > Preferences... then select Tab Settings Then select python in the Tab Settings box and uncheck Use default value and check Replace by space.
Like the other answer, you might want to consider another ide.
I personally use eclipse with the pydev plugin and django plungin.
Erik is nice too.
I found the Python Indent plugin on the official plugin page, and it worked fine!
http://docs.notepad-plus-plus.org/index.php/Plugin_Central#P
Well, here is a updated answer:
Notepad++ >> Plugins >> plugin manager >> show plugin manager >> find (python indent) click install >> should be downloaded you need to reach to enable again from Plugins>>python indent>>enable
Go to Settings > Preferences > Language
Then on the "Tab Settings" box select "python"
and tick the "Use default value" checkbox.
You're welcome.
P.S. Yeah, I know this a little old. I really just couldn't help it.
Anyway, this is for version v7.3.2.
-- For Newer Versions , Goto Settings>>Preferences>>Auto-Completion>>Auto-Indent(checkbox)
-- For Older Versions , Goto Settings > Preferences > MISC. > Auto-Indent (checkbox)
By the time of this post, The newest Version of Notepad++ is v7.8.7.(tested)
Click on Settings
Click Preferences...
Browse drop-down menu to find MISC.
Tick the box which says Auto-indent
After that, you should be fine.
Restart Notepad++ after, and then it works.
This is for Notepad++ version v8.1.9.3 (the latest as of today)
Before starting this, save your work... but no need to close any open tab
First; install the plugin
Plugins > Plugins Admin > Search: Python Indent > Python Indent (check box) > Install > Yes
Notepad++ will restart... it will take 10 seconds or so
Second; enable the plugin
Plugins > Python Indent > Enable
Third; Have fun!
Do a test... and let me know
None of the above solutions worked for me but this worked:
Install latest version of notepad++ (as of Feb 2022)
Goto Settings -> Preferences -> Language -> Tab Settings -> Select Python -> Uncheck (Default Value) and make sure that the 'Replace by space' is selected with 4 as the count
Next, goto Settings -> Preferences -> Auto-Completion -> Enable Auto-Indent (if it's not already enabled)
This should work as expected as it's working for me.
In Notepad++ version v8.4.4
The Auto Indent is located in Settings->Preferences->Auto-Completion
and no longer in MISC.
However, for Python indentation it didn't work for me.
What worked is to use the Python Indent plugin (set to Enable).
A better ide might be spyder. http://code.google.com/p/spyderlib/ its about the best IDE I have found.
Geany is a fast and light-weight cross-platform IDE, it supports auto-completion and auto-identation for python code, execute run your program , integrated console , plus has a symbol list side pannel that lets you visualize and browse you code easily, you can jump directly to function definitions and the likes using the context menu, plus it's open source
How ever for a full fledged IDE i would recommand Eric4
I've found Notepad++ to live up to the task of being a better basic text editor than Notepad, but it isn't really designed to be as smart as a proper programming IDE.
It might be possible to get it to do what you're asking for, but I certainly don't know how to set it up that way.
Emacs has python-mode which (also) does it. Grab it and prepare for life-time enjoyment.