Peek at a new #augmentedReality visualizer I’m experimenting with
Sound distorts the sphere, letting you see speech or music. It’s pretty neat!
#ios#arkit#ar
tip: File nesting
Nest related files in the explorer
You can nest compiled JS under TS files for example or just clean up the view of your workspace
Enable it with: explorer.fileNesting.enabled
Customize it with: explorer.fileNesting.patterns
#code2020
insider adds #markdown link validation!
Now you get warnings when you link to a file or header that does not exist
Enable it with 'markdown.experimental.validate.enabled'. We're actively working on this feature so give it a try and be sure to share feedback!
setting: Files › Refactoring: Auto Save
Automatically save after refactors that go across files, such as renames
This settings is enabled by default. When disabled, VS Code will instead open all changed files as unsaved editors that you can review
#code2020
tip: Rename markdown headers
Use rename (F2) to change a #markdown header while also updating all links to that header in the current workspace
This ensures you don't accidentally create broken links when changing a header's text
#code2020
tip: local history
Local history in the Timeline view shows you all changes made to a file
Use it to diff against old versions or even restore them
Local history is enabled automatically and does not require source control
#code2020
command: Compare active file with saved
View a diff of all changes in an unsaved text editor using the 'File: Compare active file with saved' command
#code2020
tip: CSS formatting
Use the built-in #css and #scss formatters to quickly tidy up your stylesheets
Run the formatters using the 'Format Document' command or with alt+shift+F / ctrl+shift+F
#code2020
's workspace search in depth, and touches on everything from basic searching to multi-cursor editing of search editor results
Watch it on the Code 20/20 YouTube
setting: Search Smart Case
Automatically enable case-sensitive workspace search when you use uppercase letters
This can save time vs toggling case-sensitivity on and off
#code2020
insiders lets you drag and drop files to add images / links to #markdown
You can drag files from the VS Code explorer, your OS, or even a website!
Give it a try and let me know what you think https://code.visualstudio.com/insiders/
tip: Drag and drop to open folders
Quickly open a folder in VS Code by dropping it on the VS Code window
If you drop the folder on the VS Code explorer, you can instead add it to the current workspace (creating a multi-root workspace)
#code2020
tip: inline quick suggestions
See suggestions inline as you type instead of in the suggest widget
Press Tab to accept a suggestion and use option/alt+[ to cycle through suggestions
Enable them using "inline" for the "editor.quickSuggestions" setting
#code2020
tip: High contrast themes
The built-in high contrast color themes are optimized to make UI elements clearly stand out
There's a dark and light high contrast theme depending on your preference
#code2020
on advancing TC39 proposal "Type Annotations" to Stage 1 🎉
This proposal was formerly known as "Types as Comments"
Hopefully this will make using typed JavaScript even easier 🎈
References are the first step for adding other interesting features to md, such as:
- Error reporting for broken internal links
- Update links on header rename
- Update links on file move/rename
setting: Workbench > Editor: Navigation Scope
Control how 'Go Back' and 'Go Forward' navigate through editor history
• default — Nav through all editors
• editorGroup — Limit nav to current editor group
• editor — Limit nav to current editor
#code2020
New #augmentedReality prototype: AR shadow puppets
Use your hands or body to cast virtual shadows. When you step back the shadows continue flickering across the world!
#ARKit#AR#iOS
setting: Editor line height
Change the height of lines in the code editor
Values between 0 and 8 set the line height relative to the current font size. So '3' sets line height to 3x the font size
Values over 8 set the absolute line height in pixels
#code2020
Today's @code tip: Audio cues
Audio cues can provide audible alerts for events such as hitting a breakpoint and for when the current line contains errors or is folded
They are on by default in screenreader mode. You can also explicitly enable/disable specific cues
#code2020
tip: Audio cues
Audio cues can provide audible alerts for events such as hitting a breakpoint and for when the current line contains errors or is folded
They are on by default in screenreader mode. You can also explicitly enable/disable specific cues
#code2020
command: Surround with snippet
Quickly wrap selected statements in a try/catch or if/else using 'Surround with Snippet'
Extension can provide more specialized snippets for your favorite languages and environments
#code2020
Just added shadows to the #AR sound visualizer I showed off earlier this week. They help anchor the effect in the world
I tried using #scenekit for this originally but couldn’t get it working nicely so ended up rolling my own
#arkit#AugmentedReality
Two follow up tips:
- With a persistent docs view, you can try disabling hovers using the editor.hover.enabled setting
- The docs view can be "pinned" to lock it to the documentation of a single symbol
tip: Explorer undo
Use ctrl+z / cmd+z with the explorer focused to undo file deletes, moves, and renames
Use the 'explorer.confirmUndo' setting to control when VS Code prompts you for undos in the explorer
#code2020