Jetbrains PyCharm & RubyMine
Tag: Ruby
Tag: Rails
Category: jekyll
Category: update
Category: git
Category: database
Category: PostgreSQL
Category: websocket
Category: ruby
Category: projects
Category: Redis
Category: mysql
Category: Mac
Category: Node
Category: NPM
Category: PM2
Category: nodejs
Category: Meteor
Category: Nginx
Category: gitLab
Category: Rails
- Why Ruby on Rails is better than Python Django?
- How to use Hotwire turbo in Rails 6 with Webpacker?
- Rails 6 Credentials (master.key and credentials.yml.enc)
- Rails Console
- JIRA-Atlassian-Connect-App-Django
- Rails 4 5.0 Session Cookie AuthenticityToken
- Rails Active Storage
- Rails 5 Source code Research
- 微信支付
- Rails零星笔记
Category: Homebrew
Category: CentOS
Category: FreeSwitch
Category: Ruby
- Ruby on Rails 8
- RESTful API
- Ruby on Rails 7
- Study from Ruby official website
- Ruby-Metaprogramming
- Ruby连数据库的问题
- rbenv使用
Category: Vim
Category: javascript
Category: React-Native
Category: Wechat
Category: homeland
Category: JavaScript
Category: Docker
Category: RubyMine
Category: Authorization
Category: RESTful-API
Category: Proxy
Category: Deploy
Category: Devise
Category: Bootstrap
Category: Active_Storage
Category: github
Category: Android
Category: cloud
Category: ssh
Category: python
Category: reactjs
Category: markdown
Category: ShadowSocks
Category: Code
Category: rails
Category: code
Category: Django
Category: Python
Category: DRF
Category: Fish
Category: Yarn
Category: Material-UI
Category: CSS
Category: aws
Category: uwsgi
Category: nginx
Category: docker
Category: React
Category: Enzyme
Category: Jira
Category: Interview
Category: JetBrain
Category: PyCharm
Category: ESLint
Category: Rails6
Category: NVM
Category: ssl
Category: tencent
Category: CI
Category: jenkins
Category: GitHub
Category: Credentials
Category: master.key
Category: Webpacker
Category: Turbo
Category: Hotwire
Category: Bootstrap5
Category: Flutter
Category: Clash
Category: Tor
Category: proxy
Category: Build
Category: SwitchyOmega
Category: Chrome-extension
Category: SQLAlchemy
Category: Algorithm
Category: Rails7
Category: Data
Category: Structure
Category: CPP
Category: Languages
Category: Golang
Category: Typescript
Category: Rails 8
JetBrain
Useful Shortcuts
command + option + ` : Switch among different opened projects
Join multiple lines’ item to one line.
Ctrl + Shift + J
: Click the first item of an array first. Then, Ctrl + Shift + J
to move next line to this line
Split one long line’s items to multiple lines.
This is the reverse of Ctrl + Shift + J
.
You can use Find - Search - Replace
feature.
E.g. Find - search (,) - replace with (, Enter)
. The Enter
is a press of Enter key.
PyCharm
Open PyCharm
, then File -> Open -> select '/path/to/sauron/' -> click 'Open'
.
PyCharm for backend
Python Interpreter
PyCharm -> Preferences -> Project:sauron -> Project Interpreter -> Click 'sauron' folder ->
Project Interpreter -> Select the correct interpreter
.
We suggest reading pyenv-virtualenv for the Python virtualenv.
Enable Django support
PyCharm -> Preferences -> Languages & Frameworks -> Django -> Click 'sauron' folder ->
Choose 'Enable Django support'
.
- Set
Django project root
as/path/to/sauron/api
. - Set
Settings
assauron/settings
. - Under
manager.py tasks
, setEnvironment variables
as what you want if you need. - Click
OK
.
Run Django tests
Please read How to run Django tests in PyCharm.
PyCharm for frontend
Node package manager
PyCharm -> Preferences -> Languages & Frameworks -> Node.js & NPM -> Package manager -> Choose 'NPM' (not 'yarn')
Because in this way, we can make the ESLint integrate well with PyCharm
.
So please manually run npm install
when new package added.
If running npm install
changes ./frontend/yarn.lock
, then revert the change to still use the original yarn.lock
.
Other useful settings
Preferences | Editor | Strip trailing spaces on Save | All
Preferences | Editor | Code style | Javascript |
, useSingle Quote
in new code
.Preferences | Editor | Code style | Javascript | Spaces | Within | ES6 import/export braces
(Check it)