Showing posts with label Setting. Show all posts
Showing posts with label Setting. Show all posts

Friday, August 6, 2021

how to open a pdf file in chrome instead of download it?

 It is pretty straightforward to set the chrome to open the file instead of download it within the chrome setting.

here is the path the setting

chrome://settings/content/pdfDocuments

open the chrome and paste the above in the address bar. then select Open PDFs in Chrome





Tuesday, August 3, 2021

Visual Studio Code Settings for fullstack devleopment

 here are some of settings from my own personal favoriate


  //custom settings
    "editor.mouseWheelZoom": true,
    "workbench.activityBar.visible": true,
    "workbench.editor.showTabs": false,
    "workbench.sideBar.locataion": "right",
    "editor.minimap.enabled": false,
    "zenMode.centerLayout": true,
    "workbench.iconTheme": "vscode-great-icons",
    "workbench.sideBar.location": "right"

Friday, July 30, 2021

how to fix "Import "django.contrib.auth" could not be resolved from sourcePylance" in Django application development?

 when I try to import a library to the project. I spot a curly underline for the library that i just imported.

I hovered the mouse to the underneath, the warming message as following

    "Import "django.contrib.auth" could not be resolved from sourcePylance"


the root cause of this issue is related to the VS Code workspace configuration. we have to add this line to get ride of the error message.

{
    "python.pythonPath""/venv/bin/python",
}

Since I did not have the .vscode folder when I setup my django project with command line window.

I have to manually create a .vscode folder under the project and add the settings.json file inside it.

I put the above setting in the settings.json file.  The warming message finally resolved.










update: if the above solution still doesn't work

you can change the python interpreter for the current project by doing the following

  • use Ctrl-Shift-p to open command palette
  • type python interpreter in the command palette
  • select Enter interpreter path
  • find the python.exe file under your venv\scripts folder


Thursday, March 10, 2011

Reset Visual Studio 2008 Settings

after i upgraded my VS2010 to SP1, i found that it caused the conflict to my VS2008 Setting.

when i try to add a Web Service Reference to the Project. a warming windows poping up and prevent me

to add a new web service.

"the Web Service Enumeration Component is Missing, please re-install VS2008 Etc.;..........


after I search on the MSDN, here is the simple solution to fix the this issue.


go to VS2008 Folder in the program menu, select VS2008 CMD, right click on it and select run as an administrator (this is very important, only the administrator can modify the setting in Windows 7 OS)

in CMD execute this line devenv.exe ResetSkipPkgs ( to load all skip tags)  or  devenv.exe ResetSettings (reset the VS2008 back to Default setting).

i hope this can save you a day....