2018-02-21 16:25:23 +00:00
|
|
|
# Visual Studio CheatSheet
|
|
|
|
|
|
|
|
## Useful Extensions
|
|
|
|
|
|
|
|
### HTML & CSS
|
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `CSScomb`: Codeing style formatter for CSS, Less, SCSS and Saas.
|
|
|
|
|
|
|
|
- `Puglint`: Linter and style checker for pug.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Sass`: Indented Sass syntax highlighting, autocomplete & snippets.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `SCSS IntelliSense`: Advanced autocompletion and refactoring support for SCSS.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
|
|
|
### JavaScript, Node & NPM
|
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Import Cost`: This extension will display inline in the editor the size of the imported package.
|
|
|
|
|
|
|
|
- `ESLint`: Integrates ESLint into VS Code
|
|
|
|
|
|
|
|
- `NPM`: NPM support for VS Code.
|
|
|
|
|
|
|
|
- `NPM Intellisense`: Visual Studio Code plugin that autocompletes NPM modules in import statements.
|
|
|
|
|
|
|
|
- `Version Lens`: Shows the latest version for each package using code lens.
|
|
|
|
|
|
|
|
- `Vetur`: Vue tooling for VS Code.
|
|
|
|
|
2019-02-19 19:35:41 +00:00
|
|
|
### PHP
|
|
|
|
|
2019-02-19 20:26:39 +00:00
|
|
|
- `Better PHPUnit`: A better PHPUnit test runner.
|
|
|
|
|
2019-02-19 20:21:28 +00:00
|
|
|
- `Laravel Artisan`: Laravel Artisan commands within Visual Studio Code.
|
|
|
|
|
2019-02-19 20:34:33 +00:00
|
|
|
- `PHP CS Fixer`: PHP CS Fixer extension for VS Code, php formatter, php code beautify tool.
|
|
|
|
|
2019-02-19 19:35:41 +00:00
|
|
|
- `PHP IntelliSense`: Advanced Autocompletion and Refactoring support for PHP.
|
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
### Git
|
|
|
|
|
|
|
|
- `Git History`: View git log, file history, compare branches or commits.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Gitignore`: A extension for Visual Studio Code that assists you in working with .gitignore files.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
### Themes
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Material Icon Theme`: Material Design Icons for Visual Studio Code.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Palenight Theme`: An elegant and juicy material-like theme for Visual Studio Code.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
### Handy
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Debugger for Chrome`: Debug your JavaScript code in the Chrome browser.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `EditorConfig for VS Code`: EditorConfig Support for Visual Studio Code.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2019-02-19 17:01:23 +00:00
|
|
|
- `File Utils`: A convenient way of creating, duplicating, moving, renaming and deleting files and directories.
|
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Final-Newline`: Inserts a final newline when saving the document.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Formatting Toggle`: A VS Code extension that allows you to toggle the formatter (Prettier, Beautify, …) ON and OFF with a simple click.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Open in Github/Bitbucket...`: Jump to a source code line in Github / Bitbucket, Gitlab, VisualStudio.com
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `OpenChrome`: Open file with Chrome.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Output Colorizer`: Syntax Highlighting for log files.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `Prettier - Code formatter`: VS Code plugin for prettier/prettier.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2019-01-30 19:57:37 +00:00
|
|
|
- `Project Manager`: Easily switch between projects.
|
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `REST Client`: REST Client for Visual Studio Code.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `SVG Viewer`: SVG Viewer for Visual Studio Code.
|
|
|
|
|
|
|
|
- `Terminal`: Terminal for Visual Studio Code.
|
|
|
|
|
2019-02-01 09:01:03 +00:00
|
|
|
- `Vue Peek`: Allows peek and goto definition for Vue single-file components.
|
|
|
|
|
2018-09-04 10:56:52 +00:00
|
|
|
- `VS Live Share`: Real-time collaborative development from the comfort of your favorite tools.
|
|
|
|
|
|
|
|
- `Wrap Console Log`: Wrap to console.log by word or selection.
|
2018-02-21 16:25:23 +00:00
|
|
|
|
2019-01-30 19:30:34 +00:00
|
|
|
## My Settings
|
2018-02-21 16:25:23 +00:00
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
|
|
|
// Controls the font size in pixels
|
|
|
|
"editor.fontSize": 14,
|
|
|
|
|
|
|
|
// Render vertical rulers after a certain number of
|
|
|
|
// monospace characters. Use multiple values for multiple
|
|
|
|
// rulers. No rulers are drawn if array is empty
|
|
|
|
"editor.rulers": [100],
|
|
|
|
|
|
|
|
// The number of spaces a tab is equal to
|
|
|
|
"editor.tabSize": 2,
|
|
|
|
|
|
|
|
"[python]": {
|
|
|
|
"editor.tabSize": 4
|
|
|
|
},
|
|
|
|
|
|
|
|
// Controls the line height
|
|
|
|
"editor.lineHeight": 22,
|
|
|
|
|
|
|
|
// Controls the font family
|
|
|
|
"editor.fontFamily": "Fira Code",
|
|
|
|
|
|
|
|
// Enables font ligatures
|
|
|
|
"editor.fontLigatures": true,
|
|
|
|
|
|
|
|
// Controls whether snippets are shown with other suggestions and how they are sorted.
|
|
|
|
"editor.snippetSuggestions": "top",
|
|
|
|
|
|
|
|
// Ignore extension recommendations
|
|
|
|
"extensions.ignoreRecommendations": false,
|
|
|
|
|
|
|
|
// Controls auto save of dirty files
|
|
|
|
"files.autoSave": "afterDelay",
|
2018-09-04 10:56:52 +00:00
|
|
|
|
2018-02-21 16:25:23 +00:00
|
|
|
// Controls the delay in ms after which a dirty file is saved automatically
|
|
|
|
"files.autoSaveDelay": 1000,
|
|
|
|
|
|
|
|
// Configure glob patterns for excluding files and folders
|
|
|
|
"files.exclude": {
|
|
|
|
".yarn": true,
|
|
|
|
"**/*.pyc": true
|
|
|
|
},
|
|
|
|
|
|
|
|
// Insert a final new line at the end of the file when saving it
|
|
|
|
"files.insertFinalNewline": true,
|
|
|
|
|
|
|
|
// Confirm before synchronizing git repositories
|
|
|
|
"git.confirmSync": false,
|
|
|
|
|
|
|
|
// Commit all changes when there are no staged changes
|
|
|
|
"git.enableSmartCommit": true,
|
|
|
|
|
|
|
|
// Whether to lint Python files using pylint
|
|
|
|
"python.linting.pylintEnabled": false,
|
|
|
|
|
|
|
|
// Whether to lint Python files using flake8
|
|
|
|
"python.linting.flake8Enabled": true,
|
|
|
|
|
|
|
|
// Configure glob patterns for excluding files and folders in
|
|
|
|
// searches. Inherits all glob patterns from the files.exclude setting.
|
|
|
|
"search.exclude": {
|
|
|
|
"**/.git": true,
|
|
|
|
"**/.nuxt": true,
|
|
|
|
"**/build": true,
|
|
|
|
"**/data": true,
|
|
|
|
"**/dist": true,
|
|
|
|
"**/env": true
|
|
|
|
},
|
|
|
|
|
|
|
|
// Adjust the zoom level of the window. The original size is 0
|
|
|
|
// and each increment above (e.g. 1) or below (e.g. -1) represents
|
|
|
|
// zooming 20% larger or smaller. You can also enter decimals to
|
|
|
|
// adjust the zoom level with a finer granularity.
|
|
|
|
"window.zoomLevel": 0,
|
|
|
|
|
|
|
|
// Overrides colors from the currently selected color theme.
|
|
|
|
"workbench.colorCustomizations": {
|
|
|
|
"statusBar.background": "#8252be",
|
|
|
|
"statusBar.foreground": "#eeffff",
|
|
|
|
"titleBar.activeBackground": "#282b3c",
|
|
|
|
"titleBar.activeForeground": "#eeefff"
|
|
|
|
},
|
|
|
|
|
|
|
|
// Specifies the color theme used in the workbench
|
|
|
|
"workbench.colorTheme": "Material Palenight",
|
|
|
|
|
|
|
|
// Specifies the icon theme used in the workbench
|
|
|
|
"workbench.iconTheme": "material-icon-theme",
|
2018-09-04 10:56:52 +00:00
|
|
|
|
2018-02-21 16:25:23 +00:00
|
|
|
// Controls font aliasing method in the workbench
|
|
|
|
"workbench.fontAliasing": "antialiased",
|
|
|
|
"explorer.confirmDragAndDrop": false
|
|
|
|
}
|
|
|
|
```
|