Settings and shortcuts for some apps that I use on Windows 11. Table of Contents
- 1. Shortcuts and app setup
- Display copy-paste history:
win + v
- Lock screen:
win + L
- WIP
- Lock screen:
ctrl + cmd + Q
- Screenshots:
cmd + shift + 3
for the whole screen,cmd + shift + 4
for a part of the screen,cmd + shift + 5
for a video or a screenshot
- Install the GlazeWM tiling window manager.
- Automatic installation of the settings available with this command. Select the seventh option.
- Manual installation:
- Download my config file and put it in
C:\Users\%userprofile%\.glaze-wm
- Download my config file and put it in
shortcuts: You can read more about the shortcuts here
- close a window:
alt + shift + q
: - reload the config:
alt + shift + r
: - Maximize & un-maximize :
alt + f
- hide:
alt+m
(usealt+f
to make it appear again) - switch between multiple full-screen apps in the same workspace :
alt + tab
- Download Windows store. Docs
- Or use my Windows script to install it via the terminal. Link
- I use it mainly for: Search (alt + space) for applications folders or files & Killing a process instead of using task manager.
- You can also access files and folders from the search bar with alt + space then paste the path
- Open a selected application as administrator: Ctrl+Shift+Enter (only applicable to applications)
- OCR (⊞ + shift + T)
- Color picker (⊞ + shift + C)
- Locksmith (right-click on a file or folder to see which process is using it)
- Automatic installation of the Terminal settings available with this command. Select the second option.
- wget on Windows terminal: add it to your terminal: https://www.programmersought.com/article/90723524682/
- Install the package control: https://packagecontrol.io/installation
- (Windows) Copy and paste the Package Control.sublime-settings and Preferences.sublime-settings in :
%UserProfile%\AppData\Roaming\Sublime Text\Packages\User
- You may need to restart sublime text to see the changes.
- If the editor color is not changed, you can change the theme in the settings :
- (preferences -> select color scheme-> select one dark)
- (preferences -> select theme -> select one dark)
- Install the community plugins: TBD
- Install the community themes: TBD
- I've been using PyCharm (professional edition) for more than 3 years now even if I used VSCode for 2 years before that, the Intellij suite is just amazing. Intellij suite with all the plugins for students is completely free.
- If you are on Windows, use pycharm with WSL.
- Use docker with pycharm, very easy to pull and create images & containers. Specially if you want to test your app, you can create a ubuntu container in less then 5sec.
- Sync pycharm settings : https://www.jetbrains.com/help/pycharm/sharing-your-ide-settings.html#IDE_settings_sync
- Commits : doc
- pre-commit hooks : If you use conda as an interpreter in pycharm, you need to install pre-commit with pip in the environment that you are using. After the installation, see in the commit options (wheel button) next to the message if
Run git hooks
is there. If it isn't then restart pycharm. - When you write in your terminal :
pip list | grep pre-commit
you should see the package. Runningpre-commit --version
should also work. - Check the Amend commit box if you want to concatenate commits
- If you want to delete a pushed commit :
- Make sure that the branch isn't protected : open IDE settings Ctrl+Alt+S then go to git settings. You will see in the Push settings the protected branches. Note that if a branch is marked as protected on GitHub, PyCharm will automatically mark it as protected when you check it out but you can modify it.
- To delete a pushed commit, you have to options: drop a commit, or reset a current branch to a specific commit. After doing one or the other open the push panel and instead of selecting 'push', select 'force push'. Remember that you need to force push, otherwise pycharm will tell you that there are changes on the remote that need to be merged.
- pre-commit hooks : If you use conda as an interpreter in pycharm, you need to install pre-commit with pip in the environment that you are using. After the installation, see in the commit options (wheel button) next to the message if
- Remote/local terminal & interpreter :
- When creating a project with pycharm, you should use the anaconda python (windows or wsl) and not install python or using another one like virtualenv.
- You can use ubuntu as default terminal in pycharm: tools>terminal and put in a shell path:
ubuntu run
- Add WSL interpreter in Pycharm (add interpreter -> WSL). For example, Conda installed in WSL, will be available in Pycharm.
- Pytest :
- you can choose by editing the configuration template of python and pytest + unit tests to select a default working directory for all your scripts
- You can Run pytest just by right-clicking on a function bloc, file, or folder!
- Always use Markdown code and add
py
to tell the markdown that it's python code. When you will do refactor. It will change the python code in the readme. - Plugins: You can download plugins from the settings menu. I recommend the following plugins:
- github copilot
- TBD
- PyCharm has keyboard shortcuts for most of its commands related to editing, navigation, refactoring, debugging, and other tasks. Memorizing these hotkeys can help you stay more productive by keeping your hands on the keyboard. Link to Cheatsheet
- If the plugin Table of contents doesn't work on a markdown file, create a small table with the title & two
<!-- TOC -->
, it should detect it. - Pycharm has fuzzy search when creating a file. For example 'alt+p' then 'alt+ins' then 'pf' to create a python file
OfficialLink to Cheatsheet
Some of them are re-mapped :
Panels & windows :
Panel | Shortcut |
---|---|
Press the blue button | alt+p |
project panel alt+P | |
terminal panel | alt + T |
new terminal | alt maj T |
settings | ctrl+alt+S then type with the keyboard |
Git | |
Git commit panel | ctrl + K |
Git panel | alt + g |
Git update | not defined yet |
git emoji | show toolbar like alt+w then alt+g |
git menu | alt+k then alt+ctrl+g |
git menu | show toolbar like alt+w then alt+g |
git menu | show toolbar like alt+w then alt+g |
run/debug | |
debug | maj + F9 |
git menu | alt+9 |
debug panel | show toolbar like alt+w then alt+g |
run | maj +F10 |
run panel | alt+ 0 |
Code editor
Action | Shortcut | more |
---|---|---|
call actions | alt+enter | reformat code, correct code & more , used in editor |
insert / create new | alt+ insert | can be used in editor (insert tables ect..) or project panel (create new files) |
create new branch | ctrl+alt+n | |
find all | double shift | search everything like files, actions, classes |
find actions | ctrl+shit+a | search actions like tools (docker, remote server) but also execute shortcuts |
find files | ctrl+shift+n | |
find in files | ctrl+shift+f | |
find inside current panel | ctrl + F | can be used in editor |
show recent files | ctrl + E | |
show recent locations | ctrl + shift + E | |
Quick documentation | Ctrl + Q | |
Quick documentation | Ctrl + Q | |
select | ||
refactor | ||
extract method/constant/variable/field/parameter | Ctrl + Alt + M/C/V/F/P | |
select bloc | ctrl + w | select (the more you press w, the more it wraps other parts. you can then press any other thing to wrap it arround |
select with multiple cursors | ctrl + alt shift + mouse | |
Select multiple occurrences of a word | alt j | |
all case-sensitively matching words | Ctrl Alt Shift J | |
move bloc | ctrl + shift + arrow | |
refactor | alt+r + first option | |
rename | alt+r then select the second option (rename) | |
delete/cut line | ctrl+x | |
duplicate line | ctrl+d | |
moving | ||
Go to declaration or usages | ctrl+B | works as bold typo in markdown files |
end of line | :End: | |
beginning of line | Home | |
next word: | Ctrl+Right | |
previous word | Ctrl+Left | |
jump to line | ctrl+g |
- add a remote python interpreter: usually found with
which python
on the remote server or WSL. - PyCharm envs: You can clean out old PyCharm interpreters that are no longer associated with a project see the image here .
- This gives you a listing where you can get rid of old virtualenvs that PyCharm thinks are still around
WARNING: project folder needs to be on windows and not WSL to use the remote ssh. Do not host folders outside WSL if you are not using a remote interpreter, there are WSL perforamance issues)
Defining a server as default: A deployment server is considered default if its settings apply by default during automatic upload of changed files. To define a deployment server as the default one, follow these steps:
Choose the desired server on the Deployment page. You can open this page it two possible ways: either Settings/Preferences | Build, Execution, Deployment | Deployment, or Tools | Deployment | You will see your servers, right click on the one you want to set it as default, and click 'use as default'
Enabling automatic upload: As soon as the default server is set, you can make upload to this server automatic. This can be done in the following two ways:
Open the deployment Options (Settings/Preferences | Deployment | Options or Tools | Deployment | Options from the main menu), and in the Upload changed files automatically to the default server field choose Always, or On explicit save action. The difference between these two choices is explained in the field description. In the main menu, select Tools | Deployment | Automatic upload. Note that automatic upload in this case is performed in the Always mode.
- First, make sure that in the server, the React project is running when you run
yarn dev run
- In pycharm, go to configuration and create a new config for npm
- select package.json from the local folder
- select command: run
- select scripts: dev
- Node interpreter: copy and paste the result of the command
which node
in the remote server - package manager: yarn, for example
- environment:
PATH=
put the result of the commandecho $PATH
- export file: regedit ->
Ordinateur\HKEY_CURRENT_USER\Software\HWiNFO64
- import settings: double-click on the downloaded file to restore settings. Check mine here
- Add this code to prevent it from disconnecting. source
#@title 1. Keep this tab alive to prevent Colab from disconnecting you { display-mode: "form" }
#@markdown Press play on the music player that will appear below:
%%html
<audio src="https://oobabooga.github.io/silence.m4a" controls>
Turn a PDF to black and white Convert to pptx (IlovePDF) Open with PowerPoint (Office 2016) (If you want to remove the background: view -> Slide Master: click on the first one then click on the background and delete, return by closing with the red cross: close the Master view) Print color and select full black and white